Skip to content
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

Users can run code in the "Python Interactive" window #3886

Closed
greazer opened this issue Oct 31, 2018 · 9 comments
Closed

Users can run code in the "Python Interactive" window #3886

greazer opened this issue Oct 31, 2018 · 9 comments
Assignees

Comments

@greazer
Copy link
Member

greazer commented Oct 31, 2018

image

image

@rchiodo
Copy link
Contributor

rchiodo commented Jan 10, 2019

This should allow somebody to type in a line (or more) code into the interactive window.

@rchiodo rchiodo self-assigned this Jan 10, 2019
@stevenlis
Copy link

@rchiodo if so, would it add the code typed in the interactive window to the corresponding .py file automatically?

@rchiodo
Copy link
Contributor

rchiodo commented Jan 16, 2019

No, code is not mirrored. It acts more like a terminal. The code you type into the terminal is not mirrored into your file.

We're thinking of putting a button to move the code over (maybe add to bottom or something)

@stevenlis
Copy link

It seems this will simulate a more Jupyterish experience. I also suggested a new feature that may improve data scientists' user experience with vscode here.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 16, 2019

The idea of the terminal input is to allow you enter code that you don't want to save. If you wanted to have it in your python file, you'd just type it there.

@stevenlis
Copy link

That makes sense. If it acts like a terminal, one can only add new code after the last cell and cannot insert anything in between other output cells right?

Btw, another thing worth specifying is whether those code will be include in the .ipynb file since the python interactive window can also save Jupyter notebooks.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 16, 2019

Yep. Just add at the end. So not like Jupyter, more like a terminal.

We have an internal spec on this. I'm looking into if we can just post it here.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 16, 2019

The code will end up in the ipynb when you export. At least the way it's working right now. Not sure if that's desirable or not, but you can always delete those temp items before exporting.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 18, 2019

I've uploaded the internal spec. Final UI will look slightly different.

  • Context menu support is turning out to be difficult in a vscode webview, so no context menus right now
  • Multiline entering doesn't put the little ... next to each line

@rchiodo rchiodo closed this as completed Apr 24, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 22, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants