notebook
notebook copied to clipboard
"Run this cell and advance" does not work in combination with getpass / input
Description
Usually "Run this cell and advance" button is executing a cell and then, when finished, sets focus on the next cell. With this, continuously clicking "Run this cell and advance" will run the whole notebook (Like a manual run all) It turned out that when a call uses getpass / input, the cell is executed, but the advance is not working.
There is a popup window displayed which prevents focusing on the next cell:
Notebook before version 7 allowed to submit the cell execution and then focused on the next cell.
Reproduce
- Create a new python notebook
- add cell with the following code:
input('input: ') - add second cell:
print('test') - focus on the first cell and click
"Run this cell and advance"button - click
"Run this cell and advance"button one more time - the pop up window will be displayed and the next cell will not be submitted for execution
Expected behavior
clicking "Run this cell and advance" button after the executing a code cell with the input will submit next cell for execution.
There is an example how it worked in Notebook version before version 7:
Context
- Operating System and version: MacOS 14.3.1
- Browser and version: Version 126.0.6478.127 (Official Build) (arm64)
- Jupyter Notebook version: 7.2.1
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter notebook` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
This was introduced into JupyterLab in https://github.com/jupyterlab/jupyterlab/pull/8713, and Notebook 7 is based on JupyterLab components. Please review the discussion about this on that PR and why it was added. This fix might need to go into JupyterLab as Notebook 7 is based on that Jupyterlab code.