Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local
Expected behaviour
When performing a regex-based batch replacement for the pattern (\d)\+(\d) with replacement $1 + $2, all occurrences across cells should be updated consistently.
Environment data
Expected behaviour
When performing a regex-based batch replacement for the pattern
(\d)\+(\d)
with replacement$1 + $2
, all occurrences across cells should be updated consistently.Input ipynb JSON:
Expected single and batch replacement result:
Actual behaviour
When performing batch replacement, the second cell’s content is processed incorrectly, resulting in an incorrect update. The output looks as follows:
Steps to reproduce:
(\d)\+(\d)
and replacement$1 + $2
in the Jupyter notebook.Logs
There is no relevant output in the Jupyter panel.
I don’t know whether this is an issue with VS Code or Jupyter, but this kind of error only seems to occur in .ipynb files.