New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistencies between the terminal version and the notebook #9048
Comments
comment:1
Changed the title to identify the underlying issue. Note that 1+2; also prints out something in the notebook, but not in the command line. My guess is that it is a convention in ipython, since a semicolon does nothing in just plain python:
|
comment:3
note sure what to do with this ticket. At least we can try to list all inconsistencies between the terminal version and the notebook:
Are there any other differences? Paul |
comment:4
Replying to @zimmermann6:
The printing in the notebook is a little more different than just that:
prints
whereas
prints
and
prints nothing, whereas
prints
i.e., it seems that all results from statements contained entirely on the last line of the cell are printed, regardless of semicolons, and no other results are. To me this seems a little arbitrary, but resolving this is probably something for the notebook. |
comment:8
I've added |
This comment has been minimized.
This comment has been minimized.
comment:9
automatic_names also doesn't work in the Jupyter Notebook. This was also discussed in #25837. I looked into this a bit à year ago, and it turns out the |
comment:10
I thought I also made a ticket specifically for this issue but I can't find it now, so maybe this is just the one. |
comment:11
I've created #29888 for automatic_names in Jupyter. This ticket can still be about differences between the terminal and Jupyter notebook, but probably should be updated for differences between that one and the terminal, not the sagenb and terminal. |
In the text version of Sage,
var('x');
does not print anything.However, in the notebook, it prints
x
, even with the;
that should prevent output. This is quite annoying. Is there a reason for that?
Also,
automatic_names
does not work in the terminal version.CC: eocansey@risc.jku.at
Component: notebook
Issue created by migration from https://trac.sagemath.org/ticket/9048
The text was updated successfully, but these errors were encountered: