-
Notifications
You must be signed in to change notification settings - Fork 56
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
Upgrade Workbench JupyterLab to 4.x #852
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for making this change!
&& ln -s /opt/python/jupyter/bin/jupyter /usr/local/bin/jupyter \ | ||
&& /opt/python/jupyter/bin/python -m pip install ipykernel \ | ||
&& /opt/python/jupyter/bin/python -m ipykernel install --name py${PYTHON_VERSION} --display-name "Python ${PYTHON_VERSION}" \ | ||
&& /opt/python/jupyter/bin/python -m ipykernel install --name py${PYTHON_VERSION_ALT} --display-name "Python ${PYTHON_VERSION_ALT}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ianpittwood, JupyterLab has stopped working for us.
If I run:
docker run -it --platform linux/amd64 rstudio/r-session-complete:ubuntu2204-2024.09.0 bash
I see that the two python -m ipykernel install
lines in your Dockerfile
produce the following kernel configurations:
/usr/local/share/jupyter/kernels/py3.11.10/kernel.json
{
...
"/opt/python/jupyter/bin/python",
...
"display_name": "Python 3.11.10",
...
}
/usr/local/share/jupyter/kernels/py3.12.6/kernel.json
{
...
"/opt/python/jupyter/bin/python",
...
"display_name": "Python 3.12.6",
...
}
Note how the paths for both 3.11 and 3.12 point to the same one Python binary, which is 3.12.
It'd be great if this is fixed because 3.12 doesn't work with most ML libraries/models.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out. This should fix the issue: #855
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ianpittwood . Sorry to be a pain, but !pip install <pkg>
has been broken too.
Upgrade Jupyterlab to 4.x since 3.x has been deprecated