Sys: Macbook 2012
Python: Python 3.5.1 :: Continuum Analytics, Inc.
Anaconda: conda 4.2.13
I am having issues using notebook extensions (nbextensions) in Jupyter notebook and don't know how to resolve the issue. I would ultimately like to use the nbextensions which are not showing on my Jupyter Notebook toolbar despite installing and reinstalling several times (using pip and/or conda) and removing and reinstalling anaconda altogether. The exact symptoms, with a linked log follow.
My error message: 404 GET /nbextensions/nbextensions_configurator/tree_tab/main.js
Goal: I just want to use notebook extensions again :-(
Summary of Symptons
conda packages
extension, I get an error. (screen shot below)anaconda
install and reinstall;
didn't work tried pip uninstall of jupyter and conda remove of
jupyter but did not change this problemjupyter_path
has several different paths as an output. I'm not sure
if that is a problem but maybe it is. I don't know what to deleteHere are the details and screen shots; any help appreciated
I placed my log file from launching jupyter notebook with debug here
Here is my output of jupyter_path:
>>> from jupyter_core.paths import jupyter_path
>>> print(jupyter_path())
['/Users/linwood/Library/Jupyter', '/Users/linwood/anaconda3/share/jupyter', '/usr/local/share/jupyter', '/usr/share/jupyter']
If this helps, here's the jupyter I'm using when I'm not in an environment:
$ which jupyter
/Users/linwood/anaconda3/bin/jupyter
Now the screen shots:
Multiple nbextension folders
conda packages error
Jupyter_path printout
EDIT
As requested, the javascript console log. I apologize if this is the wrong thing, but I used the "Developer Tools" console of the Chrome browser to record the javascript activity as the page reloaded. Here is the info (picture of errors below too):
2. Network(X) Basics (Student).ipynb:119 loaded custom.js
default.js:48 Default extension for cell metadata editing loaded.
rawcell.js:82 Raw Cell Format toolbar preset loaded.
slideshow.js:43 Slideshow extension for metadata editing loaded.
menubar.js:240 actions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later...
MenuBar.bind_events @ menubar.js:240
MenuBar @ menubar.js:55
(anonymous) @ main.js:102
execCb @ require.js?v=6da8be3…:1690
check @ require.js?v=6da8be3…:865
(anonymous) @ require.js?v=6da8be3…:1140
(anonymous) @ require.js?v=6da8be3…:131
(anonymous) @ require.js?v=6da8be3…:1190
each @ require.js?v=6da8be3…:56
emit @ require.js?v=6da8be3…:1189
check @ require.js?v=6da8be3…:940
(anonymous) @ require.js?v=6da8be3…:1140
(anonymous) @ require.js?v=6da8be3…:131
(anonymous) @ require.js?v=6da8be3…:1190
each @ require.js?v=6da8be3…:56
emit @ require.js?v=6da8be3…:1189
check @ require.js?v=6da8be3…:940
enable @ require.js?v=6da8be3…:1177
init @ require.js?v=6da8be3…:783
callGetModule @ require.js?v=6da8be3…:1204
completeLoad @ require.js?v=6da8be3…:1604
onScriptLoad @ require.js?v=6da8be3…:1711
utils.js:59 load_extensions ["nbpresent/js/nbpresent.min", "nb_conda/main", "nb_anacondacloud/main", "jupyter-js-widgets/extension"]
utils.js:36 Loading extension: nbpresent/js/nbpresent.min
utils.js:36 Loading extension: nb_anacondacloud/main
require.js?v=6da8be3…:1952 GET http://localhost:8888/nbextensions/nbpresent/js/nbpresent.deps.min.js.js
req.load @ require.js?v=6da8be3…:1952
load @ require.js?v=6da8be3…:1679
load @ require.js?v=6da8be3…:829
fetch @ require.js?v=6da8be3…:819
check @ require.js?v=6da8be3…:851
enable @ require.js?v=6da8be3…:1177
enable @ require.js?v=6da8be3…:1550
(anonymous) @ require.js?v=6da8be3…:1162
(anonymous) @ require.js?v=6da8be3…:131
each @ require.js?v=6da8be3…:56
enable @ require.js?v=6da8be3…:1114
init @ require.js?v=6da8be3…:783
(anonymous) @ require.js?v=6da8be3…:1453
require.js?v=6da8be3…:165 Uncaught Error: Script error for "nbpresent-deps"
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js?v=6da8be3…:165)
at HTMLScriptElement.onScriptError (require.js?v=6da8be3…:1732)
makeError @ require.js?v=6da8be3…:165
onScriptError @ require.js?v=6da8be3…:1732
session.js:54 Session: kernel_created (ac540fe3-f39d-4a3d-80c5-265638fb8811)
kernel.js:453 Starting WebSockets: ws://localhost:8888/api/kernels/445b6828-66f3-4312-a79f-3c4473345579
kernel.js:100 Kernel: kernel_connected (445b6828-66f3-4312-a79f-3c4473345579)
kernel.js:100 Kernel: kernel_ready (445b6828-66f3-4312-a79f-3c4473345579)
utils.js:36 Loading extension: nb_conda/main
utils.js:36 Loading extension: jupyter-js-widgets/extension
extension.js:88 loaded widgets
manager-base.js:195 Widget backend and frontend versions are compatible
Install nbextensions
Solution a) create new env, activate, install nbextensions, install js/css file, start jupyter
conda create --name py39 python=3.9
conda activate py39
conda install -c conda-forge jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter-notebook
solution b) https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1012#issuecomment-309448477
Indeed if you would like only get rid of 404 Get error
jupyter nbextension list
You will see output
Known nbextensions:
config dir: /home/your_user/.jupyter/nbconfig
notebook section
nbextensions_configurator/config_menu/main disabled
contrib_nbextensions_help_item/main disabled
hinterland/hinterland disabled
code_prettify/code_prettify disabled
jupyter-js-widgets/extension disabled
tree section
nbextensions_configurator/tree_tab/main enabled
- Validating: problems found:
- require? X nbextensions_configurator/tree_tab/main
Go to each main configuration in the files and change it to false. I found all files in ~/anaconda3/etc/jupyter/nbconfig
Specifically tree.json in my case
nano tree.json
Output
{
"load_extensions": {
"nbextensions_configurator/tree_tab/main": true
}
}
After changing true to false you will get rid of 404
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With