Skip to content

Commit 5978e7d

Browse files
authored
fix fastplotlib.__init__ (#424)
1 parent c9ce495 commit 5978e7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fastplotlib/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .graphics import *
55
from .graphics.selectors import *
66
from .legends import *
7+
from .utils import _notebook_print_banner, config
78

89
from wgpu.gui.auto import run
910

@@ -16,13 +17,15 @@
1617

1718
from wgpu.backends.wgpu_native import enumerate_adapters
1819

20+
with open(Path(__file__).parent.joinpath("VERSION"), "r") as f:
21+
__version__ = f.read().split("\n")[0]
22+
1923
adapters = [a.request_adapter_info() for a in enumerate_adapters()]
2024

2125
if len(adapters) < 1:
2226
raise IndexError("No WGPU adapters found, fastplotlib will not work.")
2327

24-
with open(Path(__file__).parent.joinpath("VERSION"), "r") as f:
25-
__version__ = f.read().split("\n")[0]
28+
_notebook_print_banner()
2629

2730
__all__ = [
2831
"Plot",

0 commit comments

Comments
 (0)