Jupyter/ExtensionPackage
From charlesreid1
This has basically been a failure, at every attempt.
Trying to get a standalone pip-install-able package to get a Jupyter extension installed and working, that can plant a custom CSS file/theme into a Juypter configuration directory.
Link roll/cleaning up:
ipython-widgetboilerplate
- https://github.com/jdfreder/ipython-widgetboilerplate
- too old - structure doesn't match jupyter currently
jupyter contrib nbextensions
- https://github.com/ipython-contrib/jupyter_contrib_nbextensions
- this actually WORKS - installs custom CSS - but no idea how to extricate this from all the other junk bundled in there, and also we can't do custom compilation scripts, etc.
- not standalone enough, not independent enough, not complicated enough
- but, we can install custom css
jupyter notebook documentation:
- https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html#Installation-of-Jupyter-Extensions
- covers installation of notebook extensions
- incomplete, and not exactly... what you need... for nbextensions
- https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html
- talking about bundling as packages
github searches:
- https://github.com/search?p=6&q=load_ipython_extension&type=Code&utf8=%E2%9C%93
- searching for load_ipython_extension
- https://github.com/search?q=_jupyter_nbextension_paths&type=Code&utf8=%E2%9C%93
- searching for _jupyter_nbextension_paths()
examples of notebook pluginss:
- https://github.com/yuvipanda/nbtimetravel
- https://github.com/blink1073/oct2py/blob/master/oct2py/ipython/octavemagic.py (magic plugin, precisely what we want to do eventually, but right now just trying to get basics of css installation working)
more notes:
the closest we have come is getting jupyter contrib nbextensions [1] to work, it's just too limited and not meant for one-extension-one-package I guess...
"Please make sure you use the branch corresponding to your IPython/Jupyter version."
Reset
use the approach that works - the jupyter contrib nbextenstions repo - and refit it with a single package.