![]() Then install a new plotly version with pip or conda: pip install "plotly>=5" "ipywidgets>=7.6"īoth widget and renderer are included, so no need to install plotlywidget separately.Ĭheck list of extensions again: jupyter labextension list Optional: verify list of extensions with: jupyter labextension list First uninstall the source extensions that you just installed (non of those are needed): jupyter labextension uninstall jupyterlab-plotly plotlywidget It seems that you used an old set of instructions for installing plotly, as plotly 5.0+ supports prebuilt extensions for JupyterLab. JupyterLab 3.0 introduced prebuilt extensions system that allows users to install extensions from pip (and conda) without the need for the build step making all the trouble of troubleshooting failed builds disappear. ![]() You should not need to install the extension from source. ❯ jupyter labextension install -minimize=Falseīuilding jupyterlab assets (production, not minimized) shutil.Error: Permission denied: ‘/mnt/s/dokumente/Privat/path/.venv/share/jupyter/lab/staging/templates’”)] File “/home/bebop/.pyenv/versions/3.8.5/lib/python3.8/shutil.py”, line 510, in _copytree Return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks, File “/home/bebop/.pyenv/versions/3.8.5/lib/python3.8/shutil.py”, line 554, in copytree pytree(pjoin(HERE, ‘staging’, ‘templates’), templates) File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/commands.py”, line 1180, in _populate_staging File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/commands.py”, line 657, in build Return handler.build(name=name, version=version, static_url=static_url, File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/commands.py”, line 469, in build File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/labapp.py”, line 162, in startīuild(name=self.name, version=self.version, File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/labapp.py”, line 166, in start File “/mnt/s/dokumente/Privat/path/.venv/lib/python3.8/site-packages/jupyterlab/debuglog.py”, line 47, in debug_logging See the log file for details: /tmp/jupyterlab-debug-5vr2zquq.log Shutil.Error: Permission denied: ‘/mnt/s/dokumente/Privat/path/.venv/share/jupyter/lab/staging/templates’”)] Intensive, so turning it off may help the build finish successfully in However, the minifier plugin used by Webpack is very memory Minimize: This option controls whether your JS bundle is minifiedĭuring the Webpack build, which helps to improve JupyterLab’s overall Installed from local files, this option will instead default to True.Įxplicitly setting dev-build to False will ensure that the production This option will default to False (i.e., the The config directories can be listed by running:ĭev-build: This option controls whether a dev or a more streamlined If you don’t already have a jupyter_config.py file, you can create one byĪdding a blank file of that name to any of the Jupyter config directories. Lines to a Jupyter config file named jupyter_config.py: You can also disable these options for all JupyterLab builds by adding these Jupyter lab build -dev-build=False -minimize=False If you are building via the jupyter lab build command, you can disable May be able to fix it by disabling the dev_build and/or minimize options. Troubleshooting: If the build failed due to an out-of-memory error, you Building jupyterlab assets (production, minimized) Building in /mnt/s/dokumente/Privat/path/.venv/share/jupyter/lab ![]() Plotlywidget needs to be included in build ![]() Other labextensions (built into JupyterLab)Īpp dir: /mnt/s/dokumente/Privat/neue_fische/ot/ot-sopra_steria/.venv/share/jupyter/labīuild recommended, please run jupyter lab build: mnt/s/dokumente/Privat/neue_fische/ot/ot-sopra_steria/.venv/share/jupyter/labextensions JupyterLab v3.0.0 enabled OK (python, jupyterlab_widgets) jupyter labextension install -minimize=FalseĪny advice would be appreciated.I am restricted to use WSL1 because of company requirements. I installed a venv with pyenv running python 3.8.5. Afterwards I was asked to run the jupyter lab build and this failed. I therefore tried to install the extension jupyter labextension install jupyterlab-plotly. Plotly figures are not rendered/displayed in jupyterlab. ![]()
0 Comments
Leave a Reply. |