Open
Description
Folks,
I wan to run fastplotlib in ipython, not in jupyter.
https://fastplotlib.org/user_guide/guide.html#using-fastplotlib-in-an-interactive-shell suggests Qt or pyglfw. But
pip install --prefix ... pyglfw
DEPRECATION: Building 'pyglfw' using the legacy setup.py bdist_wheel mechanism, which will be
removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is
to use the standardized build interface by setting the `--use-pep517` option, (possibly combined
with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'pyglfw'.
...
Successfully installed pyglfw-0.2.2
But then e.g. https://fastplotlib.org/ver/dev/_gallery/misc/line_animation.html
fig = fpl.Figure(size=(700, 560) ) # with or without canvas="glfw" ) (typo: glfw)
print( "fig.canvas:", fig.canvas ) # <rendercanvas.glfw.GlfwRenderCanvas
...
Module created for script run in IPython but nothing displayed❓
Next try:
pip install -prefix ... pyqt6
Successfully installed PyQt6-Qt6-6.9.1 PyQt6-sip-13.10.2 pyqt6-6.9.1
from PyQt6 import QtWidgets
ImportError: dlopen(/opt/local/py/site/plot/PyQt6/QtWidgets.abi3.so, 2): Library not loaded:
/System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIdentifiers
Referenced from: /opt/local/py/site/plot/PyQt6/QtWidgets.abi3.so
Reason: image not found
-> forget it, just use jupyterlab ?
I realize that glfw / PyQt6 on an old mac is not your problem.
I'd suggest, though, a warning icon in the doc "fpl from ipython" :)
versions: numpy 2.3.0 scipy 1.15.3 python 3.12.8 macOS-10.15.7-x86_64-i386-64bit
fpl.version='0.5.0'
thanks, cheers
-- denis
Metadata
Metadata
Assignees
Labels
No labels