Closed
Description
Description
This error occurs in both python and Julia on a jupyter notebook. The definition of a variable like
a = 0xxxxxx
b = .0xxxxx
where the x
's are different digits 0-9
, makes the program crash.
- In python, the first zero entry is highlighted in red and the other numbers to the right can still be shown but the cell cannot be executed.
- In julia, the first zero is not highlighted but the other numbers to the right of the first zero are hidden from the screen. However, they are present in memory since pressing
delete
removes all of these hidden digits one by one until the initial 0 is reached.
The behavior is not reproduced in a python/julia console or in a notebook opened in VisualStudio. Also, the syntax c = 0.xxxxxxx
is accepted in the jupyter notebook and produces no error.
Another thing we tried was to edit the notebook externally in VScode with different cells for the variables a, b & c
and open it later in the browser. This produces that the cells containing examples a & b
are not highlighted and cannot be executed. Instead, cell c
is correctly highlighted and executed.
Context
- Operating System and version: Linux Ubuntu 22.04
- Browser and version: Mozilla Firefox 114.0.1
- VScode: 1.79.2
- Jupyter versions:
jupyter core : 4.6.1
jupyter-notebook : 6.0.3
qtconsole : 4.6.0
ipython : 7.12.0
ipykernel : 5.1.4
jupyter client : 5.3.4
jupyter lab : 1.2.6
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.4
traitlets : 4.3.3