Skip to content

Automatically run IPython magic commands at loading #3177

Closed

Description

@stevenlis

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

Rich Chiodo (@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.

Activity

  1. greazer commented on Aug 8, 2019

    @greazer
    Contributor

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

  2. DavidKutu commented on Aug 22, 2019

    @DavidKutu

    Ready for the next release.

  3. DavidKutu commented on Aug 30, 2019

    @DavidKutu

    The setting will be called 'Run Startup Commands'

  4. locked as resolved and limited conversation to collaborators on Sep 17, 2019
  5. unlocked this conversation on Nov 14, 2020
  6. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions