在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipython-contrib/jupyter_contrib_nbextensions开源软件地址:https://github.com/ipython-contrib/jupyter_contrib_nbextensions开源编程语言:JavaScript 53.9%开源软件介绍:Jupyter notebook extensionsThis repository contains a collection of extensions that add functionality to the Jupyter notebook. These extensions are mostly written in Javascript and will be loaded locally in your browser. The IPython-contrib repository is maintained independently by a group of users and developers and not officially related to the IPython development team. The maturity of the provided extensions varies, so please create an issue at the project's github repository if you encounter any problems. IPython/Jupyter version supportFor Jupyter version 4 or 5, use the master branch of the repository. Most nbextensions have been updated to work with both Jupyter 4.x and 5.x, but occasionally things get missed, or the Jupyter API changes in a minor version update, so if anything doesn't work as you'd expect/hope, please do check the issues, or open a new one as necessary! This repo is pretty much all in the main master branch, although there remain vestigial branches for IPython notebook versions 2.x and 3.x. JupyterLabDue to major differences between the Jupyter Notebook and JupyterLab, the extensions in this repository will not work in JupyterLab. DocumentationDocumentation for all maintained extensions can be found at jupyter-contrib-nbextensions.readthedocs.io All extensions that are maintained and active
have at least a yaml file to allow them being configured using the
jupyter_nbextensions_configurator
server extension, which is installed as a dependency of this package.
Most also have a markdown readme file for documentation.
The Some extensions are not documented. We encourage you to add documentation for them. InstallationTo install the The Python package installation step is necessary to allow painless installation of the nbextensions together with additional items like nbconvert templates, pre-/postprocessors, and exporters. 1. Install the python packagePIPAll of the nbextensions in this repo are provided as parts of a python package,
which is installable in the usual manner, using
Alternatively, you can install directly from the current master branch of the repository
All the usual pip options apply, e.g. using pip's CondaThere are conda packages for the notebook extensions and the jupyter_nbextensions_configurator available from conda-forge. You can install both using
This also automatically installs the Javascript and CSS files
(using Installation from cloned RepoYou can also install from a cloned repo, which can be useful for development. You can clone the repo using
Then perform an editable pip install using
2. Install javascript and css filesThis step copies the nbextensions' javascript and css files into the jupyter
server's search directory, and edits some jupyter config files.
A
The command does two things: installs nbextension files, and edits nbconvert
config files. The first part is essentially a wrapper around the
notebook-provided
In addition, two further option flags are provided to perform either only the config-editing operations, or only the file-copy operations:
Finally, the An analogous 3. Enabling/Disabling extensionsTo use an nbextension, you'll also need to enable it, which tells the notebook interface to load it. To do this, you can use a Jupyter subcommand:
for example,
To disable the extension again, use
Alternatively, and more conveniently, you can use the
jupyter_nbextensions_configurator
server extension, which is installed as a dependency of this repo, and can be
used to enable and disable the individual nbextensions, as well as configure
their options. You can then open the 4. More complex setupsFor complex or customized installation scenarios, please look at the documentation for installing notebook extensions, server extensions, nbconvert pre/postprocessors and templates on the Jupyter homepage. Most nbextensions here should work fine with jupyterhub (because jupyterhub spawns regular notebook servers for each individual user), but won't work with jupyterlab (because the jupyterlab javascript framework is different to notebook's, and still rapidly changing under active development). See also installing Jupyter Notebook extension structureMost of the nbextensions are stored in the repository each as a separate subdirectory of
Each notebook extension typically has its own directory named after the extension, containing:
A few (jupyter_highlight_selected_word, jupyter_latex_envs), exist as separate packages on pypi, which are included as dependencies of this package. For further details, see the documentation at jupyter-contrib-nbextensions.readthedocs.io. ContributingTo learn how to setup a development environment and for contribution guidelines, see CONTRIBUTING.md. ChangesFor changes, see the CHANGELOG.md |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论