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

Automatically run IPython magic commands at loading #3177

Closed
stevenlis opened this issue Aug 2, 2019 · 3 comments
Closed

Automatically run IPython magic commands at loading #3177

stevenlis opened this issue Aug 2, 2019 · 3 comments
Assignees

Comments

@stevenlis
Copy link

I send a feature request https://github.com/microsoft/vscode-python/issues/6344 to display the plots in the interactive window as PNGs.

@rchiodo suggested to run the following command:

%config InlineBackend.figure_format = 'png'

While waiting for the request to be implemented, I have to copy it to every single python file of mine. It would be much more convenient if vscode could run it for me automatically whenever the python extension is loaded.

There might be many magic commands a user would like to run based on their preference. I believe adding such a function would be very useful.

@greazer
Copy link
Contributor

greazer commented Aug 8, 2019

Let's add a setting that accepts a set of python statements as a single string.

@DavidKutu DavidKutu self-assigned this Aug 13, 2019
@DavidKutu
Copy link

Ready for the next release.

@DavidKutu
Copy link

The setting will be called 'Run Startup Commands'

@lock lock bot locked as resolved and limited conversation to collaborators Sep 17, 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 7, 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