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 jupyterlab to 3.3.x, add "sage -n nbclassic" and "sage -n retrolab" #32069

Closed
mkoeppe opened this issue Jun 27, 2021 · 68 comments
Closed

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 27, 2021

#30246 added jupyterlab 2.2.x as an optional package as part of Meta-ticket #30399.

The 3.0 series has been out since December 2020. https://pypi.org/project/jupyterlab/#history

Current as of Mar 2022 is 3.3.0. It still supports Python 3.7, as needed for Sage 9.6.

It is now also possible to run the classic notebook on top of jupyterlab - https://pypi.org/project/nbclassic/
(See also https://github.com/jupyterlab/retrolab#relation-to-other-jupyter-frontends)

CC: @slel @jcamp0x2a @dimpase @egourgoulhon

Component: packages: optional

Keywords: jupyterlab

Author: Matthias Koeppe

Branch/Commit: 1243bd8

Reviewer: Eric Gourgoulhon

Issue created by migration from https://trac.sagemath.org/ticket/32069

@mkoeppe mkoeppe added this to the sage-9.4 milestone Jun 27, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

Dependencies: #31280

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

Changed dependencies from #31280 to #31280, #32071

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

Last 10 new commits:

2694cbfbuild/pkgs/requests/checksums.ini: Add upstream_url
62769f9build/pkgs/rst2ipynb/checksums.ini: Add upstream_url
eb6d3d0build/pkgs/scandir/checksums.ini: Add upstream_url
e2cada9build/pkgs/snowballstemmer/checksums.ini: Add upstream_url
d83e2f8build/pkgs/wcwidth/checksums.ini: Add upstream_url
c943913build/pkgs/{backcall,ptyprocess}/dependencies: flit_core switched from pytoml to toml; remove pytoml package
6225684Merge #31280
0075b33build/pkgs/{scipy,sphinx,sympy}/install-requires.txt: Update version ranges to include the version in package-version.txt
5116399Merge #32071
62e5a88build/pkgs/jupyterlab: Update to 3.0.x

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 27, 2021

Commit: 62e5a88

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

b348305Merge tag '9.4.beta4' into t/31280/jupyter_upgrade
2582707build/pkgs/ptyprocess: Revert upgrade to 0.7.0; pin version to 0.5.1
45cf013build/pkgs/rst2ipynb/patches: Remove
7762e01Merge #31280

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2021

Changed commit from 62e5a88 to 7762e01

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 6, 2021

Changed dependencies from #31280, #32071 to #31280

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 19, 2021

comment:8

Setting a new milestone for this ticket based on a cursory review.

@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Jul 19, 2021
@slel
Copy link
Member

slel commented Jul 27, 2021

comment:9

JupyterLab 3.1.0 was released.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 12, 2021

Work Issues: merge updated #31280, update packages

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 14, 2021

Changed work issues from merge updated #31280, update packages to none

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 14, 2021

Changed dependencies from #31280 to #32493

@mkoeppe mkoeppe changed the title Upgrade jupyterlab to 3.0.x Upgrade jupyterlab to 3.1.x Sep 14, 2021
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

0632776build/pkgs/jupyterlab: Update to 3.1.x
00f06a6build/pkgs/{bleach,html5lib,importlib_resources,sagenb_export}/dependencies: Add missing deps
ac8bce8Merge #31280
a15e3ebbuild/pkgs/{flit_core,jupyterlab_pygments,matplotlib_inline,nbclient,nbconvert}/dependencies: Add missing deps
dc094c0build/pkgs/{ipykernel,nbconvert}/dependencies: Add missing deps
c929321build/pkgs/nbclient/dependencies: fixup
41224afbuild/pkgs/nbconvert/dependencies: Add missing dep
0fc01d3build/pkgs/zipp: Update to 3.5.0
8a314c2build/pkgs/bleach/dependencies: Add six
7984ef6Merge #32493

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2021

Changed commit from 7762e01 to 7984ef6

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 14, 2021

New commits:

0632776build/pkgs/jupyterlab: Update to 3.1.x
00f06a6build/pkgs/{bleach,html5lib,importlib_resources,sagenb_export}/dependencies: Add missing deps
ac8bce8Merge #31280
a15e3ebbuild/pkgs/{flit_core,jupyterlab_pygments,matplotlib_inline,nbclient,nbconvert}/dependencies: Add missing deps
dc094c0build/pkgs/{ipykernel,nbconvert}/dependencies: Add missing deps
c929321build/pkgs/nbclient/dependencies: fixup
41224afbuild/pkgs/nbconvert/dependencies: Add missing dep
0fc01d3build/pkgs/zipp: Update to 3.5.0
8a314c2build/pkgs/bleach/dependencies: Add six
7984ef6Merge #32493

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 14, 2021

Changed dependencies from #32493 to #32493, #32482

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2021

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

59132abbuild/pkgs/tomli: New, dependency of setuptools_scm
7ebcb6cbuild/pkgs/setuptools_scm/dependencies: Add packaging
2def651build/pkgs/{packaging,pyparsing,setuptools_scm}/dependencies: Avoid circular deps
3e2fb34Merge #31280
aceeeebMerge #32493
bf15a7bbuild/pkgs/tomli/dependencies: Add flit_core
432699dbuild/pkgs/flit_core/dependencies: Remove dep on toml again, replace PYTHON_TOOLCHAIN by pip only, to break circular dep
f10ea0bbuild/pkgs/tomli/dependencies: Replace PYTHON_TOOLCHAIN by pip only, to break circular dep
4bdbdddbuild/pkgs/tomli/dependencies: Add toml because flit_core needs it at its runtime
1fc1ba3Merge #32482

@mkoeppe mkoeppe changed the title Upgrade jupyterlab to 3.3.x Upgrade jupyterlab to 3.3.x, add "sage -n nbclassic" and "sage -n retrolab" Mar 5, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 5, 2022

comment:45

Added some more variants.

@egourgoulhon
Copy link
Member

comment:46

Thanks for the update. There is no longer any issue with jupyter_packaging, but ./sage -i jupyterlab_widgets fails now in the build of ipyml:

[ipympl-0.8.8] Attempting to download from https://pypi.io/packages/source/i/ipympl/ipympl-0.8.8.tar.gz
[ipympl-0.8.8] [......................................................................]
[ipympl-0.8.8] ipympl-0.8.8
[ipympl-0.8.8] ====================================================
[ipympl-0.8.8] Setting up build directory for ipympl-0.8.8
[ipympl-0.8.8] Finished extraction
[ipympl-0.8.8] No patch files found in ../patches
[ipympl-0.8.8] ****************************************************
[ipympl-0.8.8] Host system:
[ipympl-0.8.8] Linux cartan 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[ipympl-0.8.8] ****************************************************
[ipympl-0.8.8] C compiler: gcc
[ipympl-0.8.8] C compiler version:
[ipympl-0.8.8] Using built-in specs.
[ipympl-0.8.8] COLLECT_GCC=gcc
[ipympl-0.8.8] COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
[ipympl-0.8.8] OFFLOAD_TARGET_NAMES=nvptx-none:hsa
[ipympl-0.8.8] OFFLOAD_TARGET_DEFAULT=1
[ipympl-0.8.8] Target: x86_64-linux-gnu
[ipympl-0.8.8] Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
[ipympl-0.8.8] Thread model: posix
[ipympl-0.8.8] gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
[ipympl-0.8.8] ****************************************************
[ipympl-0.8.8] Package 'ipympl' is currently not installed
[ipympl-0.8.8] No legacy uninstaller found for 'ipympl'; nothing to do
[ipympl-0.8.8] Installing ipympl-0.8.8
[ipympl-0.8.8] Processing /home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/var/tmp/sage/build/ipympl-0.8.8/src
[ipympl-0.8.8]   Preparing metadata (pyproject.toml): started
[ipympl-0.8.8]   Running command Preparing metadata (pyproject.toml)
[ipympl-0.8.8]   Traceback (most recent call last):
[ipympl-0.8.8]     File "/home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
[ipympl-0.8.8]       main()
[ipympl-0.8.8]     File "/home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
[ipympl-0.8.8]       json_out['return_val'] = hook(**hook_input['kwargs'])
[ipympl-0.8.8]     File "/home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
[ipympl-0.8.8]       return hook(metadata_directory, config_settings)
[ipympl-0.8.8]     File "/home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
[ipympl-0.8.8]       self.run_setup()
[ipympl-0.8.8]     File "/home/eric/sage/9.6.develop/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
[ipympl-0.8.8]       exec(compile(code, __file__, 'exec'), locals())
[ipympl-0.8.8]     File "setup.py", line 41, in <module>
[ipympl-0.8.8]       cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
[ipympl-0.8.8]   TypeError: 'NoneType' object is not callable
[ipympl-0.8.8]   error: subprocess-exited-with-error

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

1a3c7dfbuild/pkgs/{jupyter_packaging,ipympl}: Reduce to pip packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Changed commit from efc92cd to 1a3c7df

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 5, 2022

comment:48

Thanks for testing! Here's a new version

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Changed commit from 1a3c7df to 9b30976

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

9b30976build/pkgs/jupyterlab_widgets/package-version.txt: Remove

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Changed commit from 9b30976 to 7b277c9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

7b277c9build/pkgs/{jupyter_packaging,ipympl}: Reduce to pip packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Changed commit from 7b277c9 to 9514d82

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

9514d82build/pkgs/{jupyter_packaging,ipympl}: Reduce to pip packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

1243bd8build/pkgs/{jupyter_packaging,ipympl}: Reduce to pip packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 5, 2022

Changed commit from 9514d82 to 1243bd8

@egourgoulhon
Copy link
Member

comment:55

Works like a charm now. Thank you!
I've also tested the new notebook interfaces nbclassic and retrolab. Thanks for having added them!

@egourgoulhon
Copy link
Member

Reviewer: Eric Gourgoulhon

@egourgoulhon
Copy link
Member

comment:56

The issue of %matplotlib widget being inoperative within the scope of %display latex is tracked in #33469. This is not specific to jupyterlab: it also happens with jupyter.

@egourgoulhon
Copy link
Member

Changed keywords from none to jupyterlab

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 6, 2022

comment:58

Thanks for testing!

@vbraun
Copy link
Member

vbraun commented Mar 9, 2022

Changed branch from u/mkoeppe/upgrade_jupyterlab_to_3_0_x to 1243bd8

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

No branches or pull requests

5 participants