Using Jupyter Notebook extensions¶
You can open Jupyter Notebook by running
jupyter notebook, or by opening Anaconda Navigator and clicking the Jupyter Notebook icon.
With Anaconda you can download and install 4 extensions for the Jupyter Notebook which make the notebook easier to use:
- Notebook anaconda.org (nb_anacondacloud)
- Notebook Conda (nb_conda)
- Notebook Conda Kernels (nb_conda_kernels)
Installing any of the 4 installs all of them. The _nb_ext_conf package is also installed, which activates the extensions.
To get the extensions using Anaconda Navigator:
- Install and manage notebook extensions packages like any other packages. See Navigator user guide.
- To use the new extensions, on the Navigator Home tab, open Jupyter Notebook.
To install all Jupyter Notebook extensions from the command line, run:
conda install nb_conda
These extensions were already installed in Anaconda versions 4.1 and 4.2. If you have Anaconda v4.1 or v4.2 installed, there is no need to install them separately. To begin using them, open a new or existing notebook.
To remove all Jupyter Notebook extensions, run:
conda remove nb_conda
nb_conda or any other 1 of the 4 extensions uninstalls all 4.
To disable Jupyter Notebook extensions individually without uninstalling them, run:
python -m nb_conda_kernels.install --disable --prefix=<ENV_PREFIX> jupyter-nbextension disable nb_conda --py --sys-prefix jupyter-serverextension disable nb_conda --py --sys-prefix jupyter-nbextension disable nb_anacondacloud --py --sys-prefix jupyter-serverextension disable nb_anacondacloud --py --sys-prefix jupyter-nbextension disable nbpresent --py --sys-prefix jupyter-serverextension disable nbpresent --py --sys-prefix
<ENV_PREFIX> with your root environment or another conda environment where the extensions have been installed.
You can access the install instructions for the RISE extension from anaconda.org.
In-depth documentation can be found there as well.
You must have an anaconda.org account for this extension to work. You can sign up for a free account at anaconda.org.
You can upload your notebook to your Cloud account with a simple button push:
You can use the Attach conda environment option described below to embed a copy of your conda environment as an
environment.yamlfile in the notebook metadata.
Sign in to Cloud:
If you are not signed in to Cloud, a dialog box appears asking for your Cloud username and password.
You may instead log in at the command line:
This is recommended if you do not have a secure connection.
Open Jupyter Notebook, then open the notebook you wish to upload to Cloud.
In the top navigation bar, click the Publish to anaconda.org button:
In the dialog box that appears, select your username.
Type a description of the notebook for display on Cloud:
If you want the identical environment to be included when the notebook is downloaded and opened, select the Attach conda environment checkbox.
Click the Publish button.
After publishing, you can view the notebook or play the presentation on Cloud from the top navigation bar by clicking the Cloud button:
Your notebook on anaconda.org will look similar to this one:
For more information on Cloud, see ../../../anaconda-cloud/index.
This extension provides conda environment and package access from within Jupyter Notebook.
To manage all environments:
While viewing the dashboard file manager, select the Conda tab, which shows your current conda environments:
To add a new conda environment, click the + button above the environments list on the right side.
Select an environment by clicking its name.
In the package management section that displays, the icons from left to right have the following meanings:
- Search for packages in your current environment.
- Refresh your packages list.
- Update selected packages.
- Remove selected packages.
To manage the current kernel environment, in the Kernel menu, select Conda Packages, which displays a list of conda packages in the current environment:
For more information on using and managing conda packages, see Managing packages.
This extension allows you to use conda environment-based kernels from the dashboard and the notebook’s Kernel menu. It makes the notebook aware of your conda environments, and it is required for Notebook anaconda.org and Notebook Conda.
When creating a new notebook on the Files tab, you can pick any of the Python or R language kernels in any of your environments:
You can also change to those kernels on a current notebook: