-
Notifications
You must be signed in to change notification settings - Fork 294
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
Run entire file in ipython interpreter #3782
Comments
@johnml1135 , Are you suggesting running the whole file when there're no cells defined? |
Honestly, it probably should be marked as a duplicate of #1444. It's just another element of the data science experience. |
Have you checked out IPython for VSCode? That's what I use and it works well. I personally map the run file command to Ctrl+Enter |
This works without an extension...
Personally, I would like the ability to add multiple launchers...
|
@jamescasbon It looks like your solution will launch an interpreter session every time you want to test the code (which can be desirable in some situations*), whereas the IPython for VSCode extension will use the same IPython console. Biggest thing it does is speed up the time it takes to run the script drastically since it A) doesn't have to launch a new IPython console and B) doesn't have to import the packages over again. *Major issue with using the same interpreter session is if you do some incomplete refactoring, but I'll take the speed and deal with the mistakes. I normally like to restart the IPython console every dozen REPL iterations or so anyways. |
Consider at least adding a command to run a whole file in the interactive window. |
I updated our 'Run All Cells' command to be 'Run Entire File in Python Interactive Window' so that it works without having to defined cells. |
This will ship in our next release or you can try it out with our insiders build |
@rchiodo I just installed the insiders build and tried this new feature, and it doesn't work when jupyter is installed in a virtualenv. It works when I install jupyter in the base environment. |
Funny you should say that. I just fixed virtualenv problems (#3537) . Wait like half an hour and try reinstalling the insiders build. |
Not sure if you can see this or not: But that's our rolling build that generates the insider's drop. When the last build I just submitted finished, it should update the insiders build with support for virtualenv. |
Our contributing page also shows the current status: |
Awesome. Thanks! |
This appears to be related to #3542 and microsoft/vscode-python#4893 |
Can there be a button and and key press to run the current file in the ipython interpreter (data-science)? In terms of workflow, it would be very helpful.
The text was updated successfully, but these errors were encountered: