code: def get_version(module='spyder_notebook'):
      
      with open(os.path.join(HERE, module, '_version.py'), 'r') as f:
          data = f.read()
      lines = data.split('\n')
      for line in lines:
          if line.startswith('VERSION_INFO'):
              version_tuple = ast.literal_eval(line.split('=')[-1].strip())
              version = '.'.join(map(str, version_tuple))
              break
      return version
docs: Get version.