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
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.
Hi @labay11 thank you for submitting this issue! In python, integers cannot begin with the number zero.
What error are you seeing when Notebook crashes?
Description
This error occurs in both python and Julia on a jupyter notebook. The definition of a variable like
where the
x
's are different digits0-9
, makes the program crash.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 examplesa & b
are not highlighted and cannot be executed. Instead, cellc
is correctly highlighted and executed.Context
The text was updated successfully, but these errors were encountered: