Skip to content

Default renderer is incorrect when ipython is installed in environment #5257

Open
@emilykl

Description

@emilykl
  • If the ipython package is installed in the environment, the default renderer (pio.renderers.default) is set to "plotly_mimetype+notebook" even when running in a normal Python script.
  • This causes undesirable behavior for fig.show(): Calling fig.show() causes HTML/Javascript output to be printed to the terminal, rather than launching a browser window to show the plot.
  • If ipython is NOT installed, then pio.renderers.default is set to "browser", as it should be, and fig.show() behaves normally.

Metadata

Metadata

Assignees

No one assigned

    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