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

Labels

P1needed for current cyclebugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy