Skip to content
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
2 changes: 1 addition & 1 deletion fastplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
if IMGUI:
# default to imgui figure if imgui_bundle is installed
from .layouts import ImguiFigure as Figure
from .widgets import ImageWidget
else:
from .layouts import Figure

from .widgets import ImageWidget
from .utils import config, enumerate_adapters, select_adapter, print_wgpu_report


Expand Down
14 changes: 13 additions & 1 deletion fastplotlib/widgets/image_widget/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
from ._widget import ImageWidget
from ...layouts import IMGUI

if IMGUI:
from ._widget import ImageWidget

else:

class ImageWidget:
def __init__(self, *args, **kwargs):
raise ModuleNotFoundError(
"ImageWidget requires `imgui-bundle` to be installed.\n"
"pip install imgui-bundle"
)
Loading