code: def get_notebook_name() -> str:
      
      kernel_id = re.search(  # type: ignore
          'kernel-(.*).json',
          ipykernel.connect.get_connection_file()
      ).group(1)
      servers = list_running_servers()
      for server in servers:
          response = requests.get(urljoin(server['url'], 'api/sessions'),
                                  params={'token': server.get('token', '')})
          for session in json.loads(response.text):
              if session['kernel']['id'] == kernel_id:
                  relative_path = session['notebook']['path']
                  return pjoin(server['notebook_dir'], relative_path)
      raise Exception('Noteboook not found.')
docs: Return the full path of the jupyter notebook.
  
      References
      ----------
      https://github.com/jupyter/notebook/issues/1000#issuecomment-359875246