Skip to content
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

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Upgrade Workbench JupyterLab to 4.x #852

merged 4 commits into from
Oct 2, 2024

Conversation

ianpittwood
Copy link
Collaborator

@ianpittwood ianpittwood commented Oct 1, 2024

Upgrade Jupyterlab to 4.x since 3.x has been deprecated

Copy link
Contributor

@melissa-barca melissa-barca left a 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!

@ianpittwood ianpittwood merged commit 685c00f into dev Oct 2, 2024
37 of 38 checks passed
@ianpittwood ianpittwood deleted the upgrade-to-jl4 branch October 2, 2024 13:45
&& 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}" \
Copy link

@bjfletcher bjfletcher Oct 11, 2024

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.

Copy link
Collaborator Author

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants