Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910685 - dev-python/nbclassis in needed by dev-python/notebook-7.0
Summary: dev-python/nbclassis in needed by dev-python/notebook-7.0
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-22 12:25 UTC by Harris Landgarten
Modified: 2023-07-29 13:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2023-07-22 12:25:53 UTC
The current ebuild for nbclassic requires <dev-python/notebook-7.0.0

This does not allow nbclassic to be installed with notebook-7.0.0

nbclassic is a feature of notebook-7.0.0 which allows backward compatibility with notebooks that will not run properly with notebook-7.0.0

when nbclassic is installed, notebook-7.0 show a dropdown which shows the notebook with notebook-6.5 features.

There are notebooks that require this. plotly, for instance, does not display graphic with notebook-7.0 and needs nbclassic to work.

https://jupyter-notebook.readthedocs.io/en/latest/migrating/multiple-interfaces.html#using-the-interface-dropdown
Comment 1 Andrew Ammerlaan gentoo-dev 2023-07-24 18:28:05 UTC
Are you sure it actually works with notebook-7? It is a big release and it seems that it is now using jupyterlab. So it might be that nbclassic simply is not compatible with notebook-7 and possibly won't ever be. Have you asked upstream?
Comment 2 Harris Landgarten 2023-07-24 18:46:11 UTC
It works. When nbclassic is installed with notebook-7, you get a “view with” drop down on the tool bar. 

The drop-down shows nbclassic and jupyter-lab. Click either one loads that interface. The nbclassic mode is needed for plotly to display graphs with notebook-7. BTW plotly never worked properly with python-11 and notebook-6.5. Notebook-7 with nbclassic allows plotly graphics to display without errors and workarounds.
Comment 3 Andrew Ammerlaan gentoo-dev 2023-07-29 12:49:22 UTC
Unfortunately all the nbclassic tests fail with notebook-7, it would appear that nbclassic-1.0.0 is not yet (fully) compatible with notebook-7.
Comment 4 Harris Landgarten 2023-07-29 13:49:44 UTC
The use of NbClassic is primarily intended for Jupyter Notebook 7.0 and later versions, where the classic Notebook interface has been deprecated. The main purpose of NbClassic is to provide the classic Jupyter Notebook interface on top of Jupyter Server for these later versions.

For Jupyter Notebook 6.5 and earlier versions, the classic Notebook interface is still available by default, so there is typically no need to use NbClassic. These versions of Jupyter Notebook come with their own server and do not require Jupyter Server or NbClassic to run the classic interface.
Comment 5 Harris Landgarten 2023-07-29 13:50:23 UTC
This is from the jupyter 7.0 documentation
Comment 6 Andrew Ammerlaan gentoo-dev 2023-07-29 13:54:03 UTC
(In reply to Harris Landgarten from comment #4)
> The use of NbClassic is primarily intended for Jupyter Notebook 7.0 and
> later versions, where the classic Notebook interface has been deprecated.
> The main purpose of NbClassic is to provide the classic Jupyter Notebook
> interface on top of Jupyter Server for these later versions.

I understand that but if you 'USE=test FEATURES=test emerge -1 nbclassic' with notebook-7 installed it does not work. Possibly there is something wrong with the tests, but it's a bit difficult to debug and find out why it fails.