Issue
Given that behind the scenes the data in a Jupyter notebook is JSON, I assume that a similar simple system is used for notebook extensions.
However, I haven't been able to figure out exactly how they work from the nb_extensions
documentation.
How do they add functionality to Jupyter, and can this be mimicked by making additions to the Jupyter JSON file?
Solution
by looking at the github repo, it seems that the extensions are not made from JSON, but instead from html,css,javascript etc. also, according to the internal docs, the best way to add new features to jupyter is to clone their repo, create a new directory (under the src/jupyter_contrib_nbextensions/nbextensions
directory), add a .yaml for configuration, a README file, and a javascript file for the extention's code.
btw, it seems that jupyter_contrib_nbextensions
is dependent on another package called jupyter_nbextensions_configurator. so you might want to look into this
Answered By - ori raisfeld
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.