What to do if the latest Jupyter Notebook and nb extensions don't work

The latest Jupyter Notebook and nbextensions combination doesn't work

Currently, a week ago, on December 23, 2020, the Jupyter Notebook was updated to version 6.1.6, but the extension nbextensions (0.5.1) is no longer available. It seems that. Furthermore, if you simply drop the version of Jupyter Notebook to 6.1.5, you will be able to use nbextensions, but you will not be able to use the autocomplete extension Hinterland. I'll leave a solution for this in my case.

environment

Remarks
OS Windows10
conda 4.9.2 With Anaconda Promptconda -V
Python 3.9.1

Reproduction of the problem

Create a new environment nbex_test with Anaconda Prompt as follows and install jupyter and nbextensions.

(base) $ conda create -n nbex_test
(base) $ conda activate nbex_test
(nbex_test) $ conda install jupyter
(nbex_test) $ conda install -c conda-forge jupyter_contrib_nbextensions

In this state, a shortcut for jupyter notebook (nbex_test) will be created in C: \ Users \ Username \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Anaconda3 (64-bit) in the Start Menu. .. However, when I launch jupyter notebook from this shortcut, the Nbextensions tab does not appear as shown in the figure below.

image.png

solution

I lowered the version of Jupyter Notebook to 6.1.5 and it worked. You can lower the version of Jupyter Notebook to 6.1.5 by re-installing with Anaconda Prompt by specifying the version as shown below.

(nbex_test) $ conda install notebook==6.1.5

Safely, the nbextensions tab appears as shown in the figure below. Now you can use extensions other than autocomplete.

image.png

I can't use autocomplete

However, with this alone, you cannot use only the autocomplete extension. If you turn on Hinterland from the nbextensions tab, it will suggest import when you enter imp as shown in the figure below. Not only the original syntax of Python, but also the auto-complete function works according to the module installed later. But this cannot be used.

image.png

solution

It worked fine when I lowered the version of the autocomplete Python module jedi that comes with Jupyter. The currently installed version of jedi was 0.18.0, so I lowered it to 0.17.2.

(nbex_test ) $ conda install jedi==0.17.2

Impressions

I knew that if I dropped the version, it would be usable, but I'm in trouble because I don't know which module should be dropped to which version ... Or rather, Anaconda is the one that solves the dependency well. I hope that no more people will suffer from this anyway. (I was eaten for half a day)

Recommended Posts

What to do if the latest Jupyter Notebook and nb extensions don't work
What to do if rails s doesn't work
What to do if atom autocomplete-python doesn't work
Let's Encrypt updated! What to do if the certbot renew command doesn't work
[Note] What to do if the Qt library conflicts between pyqt and opencv
What to do when the graph does not appear in jupyter (ipython) notebook
What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
What to do if your Jupyter Notebook for beginners asks for a password or token
What to do if the package dependency cannot be repaired
What to do if Jupyter Notebook on WSL does not start automatically in your browser
What to do if yum breaks
What to do to get tensorflow-gpu to work
What to do if Python doesn't work on Git for Windows
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
What to do if the inode is exhausted on EC2 Linux
What to do if you can't use the trash in Lubuntu 18.04.
What to do if the user name is changed and the pyenv library path does not pass
Use nb extensions with Anaconda's Jupyter notebook
What to do if the Pipenv environment is corrupted by updating Homebrew
Specify the browser to use with Jupyter Notebook. Especially Mac. (And Vivaldi)
What to do if ipython and python start up with different versions
What to do if the yum command fails to set locale, defaulting to C
What to do if the Chainer (Windows) sample mnist terminates with WinError 183.
What to do if the server doesn't start with python manage.py runserver
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
Example of what to do when the sample script does not work (OpenCV-Python)
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if a version error occurs in the selenium Chrome driver
What to do if (base) is displayed at the beginning of the Mac terminal
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if pip cannot be installed
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if the Microsoft Store opens even if you run python on Windows
What to do if pvcreate produces a lot of WARNING and cannot be created
What to do when only the window is displayed and nothing is displayed in pygame Note
What to do if the print command itself causes an error in Maya python
What to do if the progress bar is not displayed in tqdm of python
How to install and use pyenv, what to do if you can't switch python versions
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you don't want to use Japanese column names when using ortoolpy.logistics_network
What to do if Python does not switch from the System version in pyenv
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error
What to do if pip install fails in Xcode 5.1
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if SciPy installation fails on CentOS
How to instantly launch Jupyter Notebook from the terminal
What to do if a UnicodeDecodeError occurs in pip
Next to Excel, for the time being, jupyter notebook
What to do if pip install fails to install dependent libraries
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
[* CentOS 6.10] What to do if you cannot add the IUS Community Project repository on CentOS 6.5 (VirtualBox)
What to do if the image is not displayed using matplotlib etc. in the Docker container