Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

importing napari-matplotlib modifies how plots are shown in jupyter notebooks #64

Closed
Labels
BugSomething isn't working
Milestone
@haesleinhuepf

Description

@haesleinhuepf

... and it should not.

The visualization of plots in matplotlib change afternapari_matplotlib has been imported. Global settingse.g. here should not be modified by a napari-plugin. Consider programming napari-pluginsside-effect free.

image

To reproduce:

import matplotlib.pyplot as pltimport numpy as npimage = np.random.random((3,3))plt.imshow(image)
import napari_matplotlibplt.imshow(image)

The same can be observed when not importingnapari_matplotlib but instead opening a viewer wherenapari-stress is installed, because starting the viewer importsnapari_stress and this importsnapari_matplotlib in the background. A napari-plugin should not modify how things are displayed in jupyter notebooks. It's kind of evil usage of global variables.

CC@jo-mueller

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp