jupyter
jupyter copied to clipboard
static-frame display halts jupyter-console
Hi,
Displaying Frames from the static-frame package (roughly "immutable pandas frames") misbehaves in the emacs-jupyter repl.
All lines are printed instead of a subset of the lines. This doesn't matter for small data frames, but with 1000s+ of lines in freezes Emacs to a halt for minutes on my system. It also misses the type annotation, so it might be trying to getting a HTML version of the tables instead of the terminal version...
I am not sure if this is a bug of emacs-jupyter or the static-frame package. And I am not sure how to go about debugging this.
Example:
import static_frame as sf
sf.Frame.from_dict({str(i): str(i) for i in range(40)}).T
# In terminal jupyter console displays lines 0-16 and 23-39.
# As does the python.el comint interface.
# But emacs-jupyter repl displays lines 0-40
# Should print this amount of lines
sf.DisplayActive.get().display_rows # == 36 by default
Image of outputs of emacs-jupyter, python.el (running jupyter console --simple-prompt) and cmd jupyter console