AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Jupyterlab plotly extension1/28/2024 ![]() I don’t usually use an anaconda environment, but I think this should work there as well. I have written a read me to help me install plotly on jupyterlab. + 453 packages from 166 contributors and audited 454 packages in 30.7sīut another round of jupyter labextension install fails with the debug log saying again that it can’t find plotly.js (same as above). Npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\tj\package.json' npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\tj\package.json' So it looks like it couldn’t find plotly.js. Info Visit for documentation about this command.Įrror: Couldn't find package required by on the "npm" registry.Īt C:\Users\tj\Anaconda3\share\jupyter\lab\staging\yarn.js:38113:17Īt step (C:\Users\tj\Anaconda3\share\jupyter\lab\staging\yarn.js:310:30)Īt C:\Users\tj\Anaconda3\share\jupyter\lab\staging\yarn.js:323:13Īt process._tickCallback (internal/process/next_tick.js:68:7) > node C:\Users\tj\Anaconda3\lib\site-packages\jupyterlab\staging\yarn.js install -non-interactiveĮrror Couldn't find package required by on the "npm" registry. It at least found the npm package but when trying to install it we had another issue: Node v10.13.0īuilding jupyterlab assets (build:prod:minimize) Looking at it’s debug log things made some progress. Then I ran jupyter labextension install again failed. From my Anaconda prompt I issued a npm config set registry Ĭommand. Has anyone successfully followed these steps and gotten plotly to work properly in a Jupyter Lab environment? It’s not clear to me where I’ve gone wrong. If I go to the NPM site I can find the package jupyterlab-plotly which indicates it’s version 4.9.0. jupyter labextension install jupyterlab-plotly4.10.0 This time it worked. So all indications to me are that it thinks it can’t find the nodejs package called jupyterlab-plotly. Npm ERR! A complete log of this run can be found in: ![]() Npm ERR! notarget a package version that doesn't exist. Npm ERR! notarget No matching version found for ERR! notarget In most cases you or one of your dependencies are requesting Npm WARN registry Using stale package data from due to a request error during revalidation. > C:\Users\tj\Anaconda3\npm.CMD pack WARN registry Unexpected warning for : Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to failed, reason: self signed certificate in certificate chain The log file says the following: Node v10.13.0 See the log file for details: C:\Users\tj\AppData\Local\Temp\jupyterlab-debug-cm_yk8nr.log I also installed nodejs using: conda install nodejsīut when it comes time to do the Jupyter Lab specific stuff then this fails jupyter labextension install error occured. The following install commands all worked correctly conda install -c plotly plotly=4.9.0Ĭonda install "notebook>=5.3" "ipywidgets>=7.2"Ĭonda install jupyterlab "ipywidgets=7.5" I’m installing on top of a fresh Anaconda 64-bit install on a Windows 10 OS. I’m trying to install Plotly for use within a Jupyter Lab environment using the instructions from Plotly’s web site Instructions. Step 3: Follow the suggestion, re-build the JupyterLab with its newly installed labextensions: $ jupyter lab buildĪfter these, restart JupyterLab, and set _notebook_mode(connected=True) at the start of each notebook session, then should correctly display the plots in the notebook.This is a copy of an issue I posted on Stack Overflow, but now that I’ve found these forums I’ll repost here. Step 2: Check the status after the installation of $ jupyter labextension listīuild recommended, please run `jupyter lab needs to be included in build Step 1: We need to first install the plotly-extension for JupyterLab: $ jupyter labextension install that the above step requires Node.js >= 4, if Node.js is not available on your OS, install it from its Official Website.) To properly display the plotly offline graphs in JupyterLab,
0 Comments
Read More
Leave a Reply. |