You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find & replace function also replaces text in read-only cells
Reproduce
Create a Python notebook
Create two cells with the content a
Click on the first cell
View -> Right sidebar -> show notebook tools
On the notebook tools use Editable to make the first cell read-only
Use Ctrlf and click on ▶ to activate the replace feature
replace a with bb
You will see that both as get replaced even the first cell is read-only
The behavior also exists in Jupyterlab.
Expected behavior
Only the a in the second cell should be replaced.
Context
Operating System and version: ArchLinux
Browser and version: Firefox 128
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.
PATH:
/home/u/venv/bin
/usr/lib/ccache/bin
/usr/local/sbin
/usr/local/bin
/usr/bin
/usr/lib/jvm/default/bin
/usr/bin/site_perl
/usr/bin/vendor_perl
/usr/bin/core_perl
/home/u/.local/bin
I believe this is a frontend issue. I don't see any change in the command line output nor browser output, so I will not include them. If these are needed nevertheless, please let me know.
Background: I use nbgrader that uses read-only cells for info that is given by the instructor and must not be changed. If the students use find & replace, then data in the read-only data may also be changed. This leads to a situation that is hard to debug.
The text was updated successfully, but these errors were encountered:
Thank you @goekce for opening this issue! You you be able to open an issue in the JupyterLab repository as well? This issue would be addressed in JupyterLab and the changes there would be pulled into Notebook.
Description
Find & replace function also replaces text in read-only cells
Reproduce
a
View
->Right sidebar
->show notebook tools
Editable
to make the first cell read-onlya
withbb
a
s get replaced even the first cell is read-onlyThe behavior also exists in Jupyterlab.
Expected behavior
Only the
a
in the second cell should be replaced.Context
Troubleshoot Output
I believe this is a frontend issue. I don't see any change in the command line output nor browser output, so I will not include them. If these are needed nevertheless, please let me know.
Background: I use nbgrader that uses read-only cells for info that is given by the instructor and must not be changed. If the students use find & replace, then data in the read-only data may also be changed. This leads to a situation that is hard to debug.
The text was updated successfully, but these errors were encountered: