-
Notifications
You must be signed in to change notification settings - Fork 194
Add notebook extension for automatically adding imports to first cell #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Wow, first of all, thank you for your contribution! It looks really nice and is a great improvement of pyforest! Does the notebook extension also work for JupyterLab? Or what would be necessary to also make it work in Jupyter Lab? |
Glad you like it! I added a labextension. But I'm still trying to figure out a convenient way for users to install it. (I've been using |
Done, and added installation instructions to the README. |
It's now using an "invisible" widget instead of the
|
What's the status of this? Looks very useful in the demo, at least. :) |
@henryiii All the major parts are finished; I never did figure out how to not show the widget in IPython, though: |
I made a notebook extension that automatically adds lazy imports to the top cell as they're imported:
How to use it:
pip install git+https://github.com/valtron/pyforest.git@nbextension
jupyter nbextension install --py pyforest
jupyter nbextension enable pyforest --py
The implementation is hacky (this is my first notebook extension and documentation is lacking) but this is a proof-of-concept anyway.