作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Sys: Macbook 2012
Python: Python 3.5.1 :: Continuum Analytics, Inc.
Anaconda: conda 4.2.13
conda packages
时anaconda
安装并重新安装;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']
$ which jupyter
/Users/linwood/anaconda3/bin/jupyter
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
最佳答案
安装 nbextensions
解决方案 a) 创建新的 env,激活,安装 nbextensions,安装 js/css 文件,启动 jupyter
conda create --name py39 python=3.9
conda activae py39
conda install -c conda-forge jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter-notebook
jupyter nbextension list
你会看到输出
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
转到文件中的每个主要配置并将其更改为 false。我在
中找到了所有文件~/anaconda3/etc/jupyter/nbconfig
nano tree.json
输出
{
"load_extensions": {
"nbextensions_configurator/tree_tab/main": true
}
}
将 true 改为
后假 你会摆脱404
关于python - 如何摆脱 Python Jupyter notebook 错误 : 404 GET/nbextensions/nbextensions_configurator/tree_tab/main. js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41627159/
Sys: Macbook 2012 Python: Python 3.5.1 :: Continuum Analytics, Inc. Anaconda: conda 4.2.13 我在 Jupyte
我是一名优秀的程序员,十分优秀!