Skip to content

fastplotlib in ipython on macos 10.15: pyglfw, pyqt6 ? #865

Open
@denis-bz

Description

@denis-bz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy