Giter Club home page Giter Club logo

Comments (3)

kushalkolar avatar kushalkolar commented on June 3, 2024

from fastplotlib.

XuAn-universe avatar XuAn-universe commented on June 3, 2024

Downgrade pygfx to 0.1.17 solves the above issue. But I got an error here:
iw = ImageWidget(data=data_orig,
cmap="gray")
iw.show()

TypeError Traceback (most recent call last)
Cell In[8], line 1
----> 1 iw = ImageWidget(data=data_orig,
2 cmap="gray")
3 iw.show()

File C:\ProgramData\anaconda3\envs\mescore\lib\site-packages\fastplotlib\widgets\image.py:561, in ImageWidget.init(self, data, dims_order, slider_dims, window_funcs, frame_apply, grid_shape, names, grid_plot_kwargs, histogram_widget, **kwargs)
557 # update the default kwargs with any user-specified kwargs
558 # user specified kwargs will overwrite the defaults
559 grid_plot_kwargs_default.update(grid_plot_kwargs)
--> 561 self._gridplot: GridPlot = GridPlot(shape=grid_shape, **grid_plot_kwargs_default)
563 for data_ix, (d, subplot) in enumerate(zip(self.data, self.gridplot)):
564 if self._names is not None:

File C:\ProgramData\anaconda3\envs\mescore\lib\site-packages\fastplotlib\layouts_gridplot.py:93, in GridPlot.init(self, shape, cameras, controller_types, controller_ids, canvas, renderer, size, names)
90 else:
91 self.names = None
---> 93 canvas, renderer = make_canvas_and_renderer(canvas, renderer)
95 if isinstance(cameras, str):
96 # create the array representing the views for each subplot in the grid
97 cameras = np.array([cameras] * self.shape[0] * self.shape[1]).reshape(
98 self.shape
99 )

File C:\ProgramData\anaconda3\envs\mescore\lib\site-packages\fastplotlib\layouts_utils.py:70, in make_canvas_and_renderer(canvas, renderer)
68 if canvas is None:
69 Canvas = auto_determine_canvas()
---> 70 canvas = Canvas(max_fps=60)
72 elif isinstance(canvas, str):
73 if canvas not in CANVAS_OPTIONS:

TypeError: 'bool' object is not callable

from fastplotlib.

XuAn-universe avatar XuAn-universe commented on June 3, 2024

This is with fastplotlib 0.1.0a16, pygfx 0.1.17, and wgpu 0.13.2.

from fastplotlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.