Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix auto canvas detection #638

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

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fastplotlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pathlib import Path

from .utils.gui import run # noqa
# this must be the first import for auto-canvas detection
from .utils import run # noqa
from .graphics import *
from .graphics.selectors import *
from .graphics.utils import pause_events
Expand Down
3 changes: 2 additions & 1 deletion fastplotlib/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dataclasses import dataclass


# this MUST be imported as early as possible in fpl.__init__ before any other wgpu stuff
from .gui import run
from .functions import *
from .gpu import enumerate_adapters, select_adapter, print_wgpu_report
from ._plot_helpers import *
Expand Down
Loading