Skip to content

Typing .0 in a notebook with an IJulia kernel breaks the jupyter cell #5469

@carstenbauer

Description

@carstenbauer

Moved over from codemirror/codemirror5#6288:

When running Julia, my jupyter notebook cell stops to function properly as soon as I type .0. Concretely, as soon as I type .0 any further input isn't displayed anymore. This can also not be "undone" by trying to delete the .0 again. The cell is just completely irresponsive.

Note that 0.0 (with a prefixing zero before the decimal separator) works just fine. Also note that if I type something blindly and reload the notebook webpage, the text appears in the correct place, although without syntax highlighting.

I'm on macOS 10.15.4 Catalina, Safari 13.1 (also happens in Chrome 81.0.4044.138), Julia 1.4.1 and

➜ jupyter --version
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

I know that the issue also exists on Windows 10. With a python kernel, everything works fine.

In this severeness, only jupyter notebook is affected. In jupyter lab only the syntax highlighting breaks but the cell is still responsive:

Screenshot 2020-05-22 at 09 11 18

Over at codemirror/codemirror5#6288, @marijnh suggested that the reason might be that jupyter notebook is still using an old version of the julia code mirror mode.

  1. Would be great if this could be fixed!
  2. Is there a way for me, locally, to update the julia mode version?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions