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

Appearance settings

Commit 5978e7d

Browse filesBrowse files
authored
fix fastplotlib.__init__ (#424)
1 parent c9ce495 commit 5978e7d
Copy full SHA for 5978e7d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎fastplotlib/__init__.py

Copy file name to clipboardExpand all lines: fastplotlib/__init__.py
+5-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.