Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jupyter notebook 自定义nbextension';s文件未在JupyterHub上公开_Jupyter Notebook_Jupyterhub_Jupyter Contrib Nbextensions - Fatal编程技术网

Jupyter notebook 自定义nbextension';s文件未在JupyterHub上公开

Jupyter notebook 自定义nbextension';s文件未在JupyterHub上公开,jupyter-notebook,jupyterhub,jupyter-contrib-nbextensions,Jupyter Notebook,Jupyterhub,Jupyter Contrib Nbextensions,我为Jupyter笔记本创建了一个自定义扩展,它使用React编写了非常高级的GUI。以下是文件的结构: 当我为本地Jupyter笔记本安装并启用扩展时,所有这些文件都在本地主机上公开,然后可以在扩展中使用 但是,当我尝试在JupyterHub上安装相同的扩展时(我使用的是最小的JupyterHub),只有一些文件被公开。可以观察到,只有在main.js中作为AMD模块导入的文件被映射到服务器。获取其他文件将导致404错误。这导致根本无法使用扩展 在安装扩展时是否有遗漏的内容?我正在Jup

我为Jupyter笔记本创建了一个自定义扩展,它使用React编写了非常高级的GUI。以下是文件的结构:

当我为本地Jupyter笔记本安装并启用扩展时,所有这些文件都在本地主机上公开,然后可以在扩展中使用

但是,当我尝试在JupyterHub上安装相同的扩展时(我使用的是最小的JupyterHub),只有一些文件被公开。可以观察到,只有在
main.js
中作为AMD模块导入的文件被映射到服务器。获取其他文件将导致404错误。这导致根本无法使用扩展

在安装扩展时是否有遗漏的内容?我正在JupyterHub的终端中使用此命令:

sudo -E jupyter nbextension install connector-jupyter --py --sys-prefix
sudo -E jupyter nbextension enable connector-jupyter --py --sys-prefix
所有文件都正确复制到
nbextensions
目录:

admin@tec-l-011630:~$ls/opt/tljh/user/share/jupyter/nbextensions/mstr_jupyter
cells-creation.js jupyter-kernel.js mstr.ico ui-iframe.css
global-override.css main.js override_style.css utilities.js
iframe_style.css MicroStrategy.yaml package-lock.json
jupyter-cells.js mstr连接器python-code.js