-
Notifications
You must be signed in to change notification settings - Fork 5
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
Automatic console output #1
Comments
I looked into this a little and wanted to share my progress. Cell outputs can be assigned by calling
within However, it seems a bit tricky to get the return value of executing a cell. Right now we're just using |
Hi @sbliven! Thanks for opening this issue and sorry for my delayed reply. I agree. I'd be nice to display the return values of the cells. We can’t use IPython parsing methods because we need to control the local namespace. However, we can achieve this by letting Jupyter Spaces parse the cell and modify the resulting syntax tree before compiling and executing it. Later this week I’ll open a PR to improve this behaviour so that it matches what one would expect from IPython. |
I looked more into alternative ways to achieve a "console output" behaviour that matches IPython's. I think we actually can rely on IPython's parsing methods whilst temporarily replacing the IPython user namespace. In this way we can achive virtually perfect feature parity with IPython console outputs (e.g. also tracebacks). |
I'll probably stick with executing the cell interactively (to autmaticaly return the output) without using IPython's shell. I'm not delivering this yet cause I'd like to see if there a solution to address it alongside #2. |
It would be great if space cells would automatically print their return result similar to a normal cell. Having to use the print statement for output is cumbersome.
The text was updated successfully, but these errors were encountered: