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

Cell numbering is broken for notebook/lab 7 (Anaconda) #7411

Closed
dbpengra opened this issue Jun 27, 2024 · 3 comments
Closed

Cell numbering is broken for notebook/lab 7 (Anaconda) #7411

dbpengra opened this issue Jun 27, 2024 · 3 comments
Labels
bug status:Needs Triage Applied to issues that need triage

Comments

@dbpengra
Copy link

Description

After 3 fresh installs of Anaconda (2 on Windows 11, 1 on Rocky Linux 9), followed by conda update --all, Jupyter Notebook 7.2.1 or JupyterLab 4.2.3 shows incorrect cell numbering as the cells are executed. In the example shown, the numbers skip values:

jupyter_notebook_Local_install

This behavior is not seen when running JupyterLab from the server provided by University of Washington IT (where I work), nor on the Jupyter "Lite" version available at Jupyter.org:

jupyter_lite_rendering

If I install the nbclassic version of the notebook, the numbering problem does not appear. I have not tried to install the package outside of Anaconda, and it may be an Anaconda bug.

Context

  • Operating System and version: Rocky Linux 9.4 or Windows 11, 23H2
  • Browser and version: Firefox 115.12.0esr or Google Chrome 126.0.6478.127
  • Jupyter Notebook version: Linux = 7.0.8, Windows = 7.2.1
Troubleshoot Output Since you asked for it, from the Linux version...
[dbpengra@localhost ~]$ jupyter troubleshoot
$PATH:
	/home/dbpengra/anaconda3/bin
	/home/dbpengra/anaconda3/condabin
	/home/dbpengra/.local/bin
	/home/dbpengra/bin
	/usr/local/bin
	/usr/local/sbin
	/usr/bin
	/usr/sbin
	~/bin
	~/bin

sys.path:
/home/dbpengra/anaconda3/bin
/home/dbpengra/anaconda3/lib/python311.zip
/home/dbpengra/anaconda3/lib/python3.11
/home/dbpengra/anaconda3/lib/python3.11/lib-dynload
/home/dbpengra/anaconda3/lib/python3.11/site-packages

sys.executable:
/home/dbpengra/anaconda3/bin/python

sys.version:
3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0]

platform.platform():
Linux-5.14.0-427.20.1.el9_4.x86_64-x86_64-with-glibc2.34

which -a jupyter:
/home/dbpengra/anaconda3/bin/jupyter

Then, a long listing of current packages, which I had to remove...

@dbpengra dbpengra added bug status:Needs Triage Applied to issues that need triage labels Jun 27, 2024
@dbpengra
Copy link
Author

A follow up: User krassowski on the Jupyter Community Forum suggested that an extension may be to blame for the bug. It appears he is correct. When I disabled the "Anaconda Assistant" extension which is associated with the green "magic sparkles" icon seen in the active cell, the cell numbering problem disappeared. To do this, I followed the instructions in the JupyterLab User Guide on Extensions, sepecifically Managing Extensions with jupyter labextension.

Thus, the following from the command line:

jupyter labextension disable @anaconda/assistant

did the trick. So, Anaconda people need to fix this, I think.

@RRosio
Copy link
Collaborator

RRosio commented Jul 2, 2024

Thank you for opening this issue @dbpengra! I will go ahead and close this issue here since it is not an issue in the Notebook codebase. I will also report this and I'll post updates here on reporting issues in @anaconda/assistant!

@RRosio
Copy link
Collaborator

RRosio commented Jul 12, 2024

Fix for this was applied in @anaconda/assistant v4.0.21!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants