Skip to content

lsmagic returns JSON which makes for awkward UX in JupyterLab #11793

Open
@fperez

Description

I'm not sure why lsmagic needs to return a JSON data structure by default - but the end result is that in JupyterLab, it becomes kind of useless... In Classic calling %lsmagic produces (clipped for simplicity):

image

while in Lab, this is the output:

image

Lab defaults to showing JSON reprs when available, which typically makes sense, so while this is a change in behavior re. Classic, I'm inclined to think it's a good step forward.

Users can get the text via

image

but that's a pretty awkward experience. Do we really need lsmagic to produce JSON by default? It seems to me that generating plain text would be fine most of the time, perhaps with a --json/-j option for JSON output when desired?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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