Jupyterlab: Failed in autocompleting math symbol

Question 1:
Look at Gif at below, autocompleting math symbol in jupyterlab is failed.
example

Question 2:
autocompleting math symbol in comments in jupyterlab is failed, the TAB can not work.
example

Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 12 on 12 virtual cores
Environment:
  JULIA_NUM_THREADS = 12
  JULIA_PKG_SERVER = https://mirrors.ustc.edu.cn/julia
IJulia: v1.24.0
Jupyterlab: 3.6.1
jupyter_server: 2.3.0
browser: vivaldi 5.7.2921.60 (Stable channel) (64-bit) 
1 Like

This looks like a bug in JupyterLab. Worth reporting on their github.

If you try to expand a second tab completion for a Unicode point higher than U+1D000 (eg all those maths characters) after some other text in a cell, you see an error with the length of the cell’s text:

KERNEL EXCEPTION
BoundsError: attempt to access 43-codeunit String at index [1:44]

that 44 looks like there’s some error processing the entire cell’s text… :person_shrugging:

The error doesn’t appear to happen if you’re using IJulia.

2 Likes