Code Monkey home page Code Monkey logo

ipynb-path's People

Contributors

kzm4269 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ipynb-path's Issues

not working in jupyterlab 3 (mac)

im getting the error:

ipynb_path.get(__name__)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~/miniconda3/envs/b37/lib/python3.8/site-packages/ipynb_path/__init__.py in get(name, password)
      3     try:
----> 4         return sys.modules[name].__file__
      5     except AttributeError:

AttributeError: module '__main__' has no attribute '__file__'

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
<ipython-input-2-549186c9cc03> in <module>
----> 1 ipynb_path.get()

~/miniconda3/envs/b37/lib/python3.8/site-packages/ipynb_path/__init__.py in get(name, password)
      5     except AttributeError:
      6         from . import core
----> 7         return core.current_notebook_path(password=password)

~/miniconda3/envs/b37/lib/python3.8/site-packages/ipynb_path/core.py in current_notebook_path(password)
     87 def current_notebook_path(password=None):
     88     clients = JupyterRestfulApi.login_all(password=password)
---> 89     client, session = find_current_session(clients)
     90     return os.path.join(client.server['notebook_dir'], session['path'])

~/miniconda3/envs/b37/lib/python3.8/site-packages/ipynb_path/core.py in find_current_session(clients)
     82             if session['kernel']['id'] == kid:
     83                 return client, session
---> 84     raise ValueError('Could not find the current session.')
     85 
     86 

ValueError: Could not find the current session.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.