-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install jupyterlab-myst enhancement in jupyterlab #197
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
I tried the following which worked. I connected as administrator to a command prompt and ran the following: C:\WINDOWS\system32>jupyter labextension install jupyterlab-myst Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages ←[0m When this finished (in about a minute) I connected through my regular account and started jupyter lab. I can now see the jupyterlab-myst extension, installed and enabled, and the test md file displayed as expected. This issue could be closed unless you would like more information from me. |
Hi @FrankHubeny, thanks for opening an issue. The solution that you found is not one that we'd encourage other users to try because it uses the legacy architecture for installing extensions in JupyterLab. However, I am glad that it solved the immediate problem for you! From the information you've provided, it's not clear whether you actually refreshed your web-browser after installing For ease of updates, I would encourage you to
Let me know if you run in to any problems! |
Hello @agoose77, I was not able to complete step 5 using the extension panel. Below is what I did: I stopped Jupyter Lab. On my account I ran the following. D:\Writing\JupyterLab>jupyter labextension uninstall jupyterlab-myst Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages ←[0m D:\Writing\JupyterLab>python -m pip uninstall jupyterlab-myst I opened a command prompt and restarted Jupyter Lab. Build failed with 500. If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output. I ran 'jupyter lab build' in my own account and received an error message: C:\Python311\Lib\site-packages\jupyterlab\debuglog.py:56: UserWarning: An error occurred. I then connected as administrator and was able to run 'jupyter lab build' C:\WINDOWS\system32>jupyter lab build --- Step 4 I restarted jupyter lab from a new command prompt opened under my own account. --- Step 5 I searched the PYPI Manager for jupyterlab-myst. Error when performing an action. Reason given: Error: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\Python311\etc\jupyter\jupyter_notebook_config.d\jupyterlab_myst.json' So I shut down Jupyter Lab. Information I clicked "OK". I am attaching a screenshot showing I can see the extension when I search for it, but it is not installed. Step 5 failed. These steps are what I originally tried before opening the bug. What specific pip command should I run under which account (my own or administrator)? |
@FrankHubeny this fell off my observability horizon, hence the lack of replies! I'll make an explicit note to add it back in. |
Thanks @FrankHubeny, your troubleshooting efforts make this a lot easier. It looks like this is now about permissions and how your JupyterLab has been installed. Typically, JupyterLab should be installed as a user, and never require administrator privileges. The "easy" (from my perspective!) solution at this stage is to completely remove JupyterLab itself, and install it in a dedicated environment. If you're comfortable with the idea of creating a Python virtual environment, then I'd suggest that approach. But, if you're not, have you looked into https://github.com/jupyterlab/jupyterlab-desktop? |
Thank you, @agoose77 . I will try the jupyterlab desktop. It is the first I heard of it. |
I'm going to close this now, as I think we've found a resolution :) |
Description
I can find the jupyterlab-myst extension after searching for it in Jupyter Lab using extension path C:\Python311. I click the "Install" link. It appears to be doing something and after a few seconds I receive the message "You will need to refresh the web page to apply the changes." I press OK and Jupyter Lab is refreshed. However, I do not see jupyterlab-myst as one of the installed extensions.
I have the following extensions already installed and enabled: jupyter-notebook-lab-extension, jupyter-widgets-jupyterlab-manager, jupyterlab-pygments
I have the following extension installed but disabled: nglview-js-widgets
I am running Windows 10.
To try to fix the problem I upgraded to JupyterLab Version 4.0.10, but this did not help. I installed jupyterlab-myst using pip install. I am not using Anaconda.
C:\Users\huben>python --version
Python 3.11.4
Here is the jupyter --version output. I upgraded all of these to try to fix the problem, but it did not help.
C:\Users\huben>jupyter --version
Selected Jupyter core packages...
IPython : 8.19.0
ipykernel : 6.28.0
ipywidgets : 8.1.1
jupyter_client : 8.6.0
jupyter_core : 5.3.1
jupyter_server : 2.12.1
jupyterlab : 4.0.10
nbclient : 0.7.4
nbconvert : 7.7.3
nbformat : 5.9.2
notebook : 7.0.6
qtconsole : 5.5.1
traitlets : 5.14.0
Running as administrator did not help either.
Proposed solution
Additional notes
The text was updated successfully, but these errors were encountered: