Skip to content

Enhancement-Request: Output repeats input #2

Open

Description

@nneubauer

The output inside a jupyter notebook resembles the output of the repl imo too closely. Specifially it repeats all inputs (probably because each line break is sent to the repl independently).

In [6]:

String a = "b";
String b = "c";
String d = "e";

yields:

 String a = "b";
|  Modified variable a of type String with initial value "b"

 String b = "c";
|  Modified variable b of type String with initial value "c"

 String d = "e";
|  Added variable d of type String with initial value "e"

Suggestion: Maybe removing all line breaks might help, as the output in the repl looks better when doing so:

-> String a = "b"; String b = "c"; String c = "d";
|  Modified variable a of type String with initial value "b"
|  Modified variable b of type String with initial value "c"
|  Added variable c of type String with initial value "d"

Activity

  1. Bachmann1234 commented on Oct 6, 2015

    @Bachmann1234
    Owner

    So you can make this slightly better by sending the command
    /v concise

    But yeah, I don't love the repeated input either. I played around with trying to remove the lines but it struck me as fragile and error prone so I left it alone.

    I suspect to get nicer behavior I would need to go ahead and write a proper kernel without relying on the repl wrapper.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions