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 b5dff56

Browse filesBrowse files
authored
cleanup readme and gpu guide (fastplotlib#653)
1 parent 9642989 commit b5dff56
Copy full SHA for b5dff56

File tree

2 files changed

+44
-47
lines changed
Filter options

2 files changed

+44
-47
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+13-44Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![CI](https://github.com/fastplotlib/fastplotlib/actions/workflows/ci.yml/badge.svg)](https://github.com/fastplotlib/fastplotlib/actions/workflows/ci.yml)
88
[![PyPI version](https://badge.fury.io/py/fastplotlib.svg)](https://badge.fury.io/py/fastplotlib)
9-
[![Documentation Status](https://readthedocs.org/projects/fastplotlib/badge/?version=latest)](https://fastplotlib.readthedocs.io/en/latest/?badge=latest)
9+
[![Deploy docs](https://github.com/fastplotlib/fastplotlib/actions/workflows/docs-deploy.yml/badge.svg)](https://fastplotlib.org/ver/dev/)
1010
[![DOI](https://zenodo.org/badge/485481453.svg)](https://zenodo.org/doi/10.5281/zenodo.13365890)
1111

1212
[**Installation**](https://github.com/fastplotlib/fastplotlib#installation) |
@@ -15,11 +15,11 @@
1515
[**Examples**](https://github.com/kushalkolar/fastplotlib#examples) |
1616
[**Contributing**](https://github.com/kushalkolar/fastplotlib#heart-contributing)
1717

18-
Next-gen plotting library built using the [`pygfx`](https://github.com/pygfx/pygfx) rendering engine that can utilize [Vulkan](https://en.wikipedia.org/wiki/Vulkan), [DX12](https://en.wikipedia.org/wiki/DirectX#DirectX_12), or [Metal](https://developer.apple.com/metal/) via WGPU, so it is very fast! `fastplotlib` is an expressive plotting library that enables rapid prototyping for large scale explorative scientific visualization.
18+
Next-gen plotting library built using the [`pygfx`](https://github.com/pygfx/pygfx) rendering engine that can utilize [Vulkan](https://en.wikipedia.org/wiki/Vulkan), [DX12](https://en.wikipedia.org/wiki/DirectX#DirectX_12), or [Metal](https://developer.apple.com/metal/) via WGPU, so it is very fast! `fastplotlib` is an expressive plotting library that enables rapid prototyping for large scale exploratory scientific visualization.
1919

2020
> **Note**
2121
>
22-
> `fastplotlib` is currently in the **late alpha stage**, but you're welcome to try it out or contribute! See our [Roadmap](https://github.com/kushalkolar/fastplotlib/issues/55). See this for a discussion on API stability: https://github.com/fastplotlib/fastplotlib/issues/121
22+
> `fastplotlib` is currently in the **late alpha stage**, but you're welcome to use it or contribute! See our [Roadmap](https://github.com/kushalkolar/fastplotlib/issues/55). See this for a discussion on API stability: https://github.com/fastplotlib/fastplotlib/issues/121
2323
2424
# Supported frameworks
2525

@@ -31,18 +31,14 @@ Next-gen plotting library built using the [`pygfx`](https://github.com/pygfx/pyg
3131
:heavy_check_mark: `wxPython`
3232

3333
**Notes:**\
34-
:heavy_check_mark: Non-blocking interactive Qt/PySide output is supported in ipython and notebooks, see http://fastplotlib.org/ver/dev/user_guide/guide.html#using-fastplotlib-in-an-interactive-shell \
34+
:heavy_check_mark: Non-blocking interactive Qt/PySide output is supported in ipython and notebooks, see the [interactive shells section in the user guide](http://fastplotlib.org/ver/dev/user_guide/guide.html#using-fastplotlib-in-an-interactive-shell) \
3535
:grey_exclamation: We do not officially support `jupyter notebook` through `jupyter_rfb`, this may change with notebook v7\
36-
:grey_exclamation: We only officially support jupyterlab for use in notebook. This means we do not support vscode notebooks etc. Jupyterlab is the most reliable way to use `fastplotlib` in notebooks.\
36+
:grey_exclamation: We only support jupyterlab for use in notebooks. This means that we do not support VSCode notebooks or any other python notebook platform. Jupyterlab is the most reliable way to use widget-based libraries in notebooks.\
3737
:disappointed: [`jupyter_rfb`](https://github.com/vispy/jupyter_rfb) does not work in collab, see https://github.com/vispy/jupyter_rfb/pull/77
3838

39-
We recommend sticking to jupyter-lab for notebooks. From our experience the usage on other platforms, such as vscode
40-
notebooks, is not optimal.
41-
42-
4339
# Documentation
4440

45-
http://www.fastplotlib.org/
41+
http://www.fastplotlib.org/ver/dev
4642

4743
Questions, issues, ideas? You are welcome to post an [issue](https://github.com/fastplotlib/fastplotlib/issues) or post on the [discussion forum](https://github.com/fastplotlib/fastplotlib/discussions)! :smiley:
4844

@@ -60,7 +56,7 @@ pip install -U fastplotlib
6056
# with imgui
6157
pip install -U "fastplotlib[imgui]"
6258

63-
# to use in jupyterlab, no imgui
59+
# to use in jupyterlab without imgui
6460
pip install -U "fastplotlib[notebook]"
6561
```
6662

@@ -76,7 +72,7 @@ Once you have ``libjpeg-turbo``:
7672
pip install simplejpeg
7773
```
7874

79-
> **Note**[guide.rst](docs%2Fsource%2Fuser_guide%2Fguide.rst)
75+
> **Note**
8076
>
8177
> `fastplotlib` and `pygfx` are fast evolving projects, the version available through pip might be outdated, you will need to follow the "For developers" instructions below if you want the latest features. You can find the release history here: https://github.com/fastplotlib/fastplotlib/releases
8278
@@ -95,7 +91,7 @@ pip install -e ".[notebook,docs,tests]"
9591
pip install git+https://github.com/pygfx/pygfx.git@main
9692
```
9793

98-
Se [Contributing](https://github.com/fastplotlib/fastplotlib?tab=readme-ov-file#heart-contributing) for more details on development
94+
See [Contributing](https://github.com/fastplotlib/fastplotlib?tab=readme-ov-file#heart-contributing) for more details on development
9995

10096
# Examples
10197

@@ -109,40 +105,13 @@ User guide: http://fastplotlib.org/ver/dev/user_guide/guide.html
109105

110106
The `quickstart.ipynb` tutorial notebook is a great way to get familiar with the API: https://github.com/fastplotlib/fastplotlib/tree/main/examples/notebooks/quickstart.ipynb
111107

112-
## Graphics drivers
113-
114-
You will need a relatively modern GPU, modern integrated graphics are usually fine for many use cases. Generally if your GPU is from 2017 or later it should be fine.
115-
116-
For more detailed information, such as use on cloud computing infrastructure, see: https://wgpu-py.readthedocs.io/en/stable/start.html#platform-requirements
117-
118-
Some more information on GPUs is here: http://fastplotlib.org/ver/dev/user_guide/gpu.html
119-
120-
### Windows:
121-
Vulkan drivers should be installed by default on Windows 11, but you will need to install your GPU manufacturer's driver package (Nvidia or AMD). If you have an integrated GPU within your CPU, you might still need to install a driver package too, check your CPU manufacturer's info.
122-
123-
### Linux:
124-
You will generally need a linux distro that is from ~2020 or newer (ex. Ubuntu 18.04 won't work), this is due to the `glibc` requirements of the `wgpu-native` binary.
108+
## GPU drivers and requirements
125109

126-
Debian based distros:
110+
Generally if your GPU is from 2017 or later it should be fine. Modern integrated graphics are usually fine for many use cases. The exact requirements will depend on how complex your visualization is and how many objects you need to render.
127111

128-
```bash
129-
sudo apt install mesa-vulkan-drivers
130-
# for better performance with the remote frame buffer install libjpeg-turbo
131-
sudo apt install libjpeg-turbo
132-
```
133-
134-
For other distros install the appropriate vulkan driver package, and optionally the corresponding `libjpeg-turbo` package for better remote-frame-buffer performance in jupyter notebooks.
135-
136-
#### CPU/software rendering (Lavapipe)
137-
138-
If you do not have a GPU you can perform limited software rendering using lavapipe. This should get you everything you need for that on Debian or Ubuntu based distros:
139-
140-
```bash
141-
sudo apt install llvm-dev libturbojpeg* libgl1-mesa-dev libgl1-mesa-glx libglapi-mesa libglx-mesa0 mesa-common-dev mesa-vulkan-drivers
142-
```
112+
More detailed information on GPUs and drivers is here: http://fastplotlib.org/ver/dev/user_guide/gpu.html
143113

144-
### Mac OSX:
145-
WGPU uses Metal instead of Vulkan on Mac. You will need at least Mac OSX 10.13. The OS should come with Metal pre-installed, so you should be good to go!
114+
For more detailed information, such as use on cloud computing infrastructure, see the WGPU docs: https://wgpu-py.readthedocs.io/en/stable/start.html#cloud-compute
146115

147116
# :heart: Contributing
148117

‎docs/source/user_guide/gpu.rst

Copy file name to clipboardExpand all lines: docs/source/user_guide/gpu.rst
+31-3Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,39 @@ If you aren't able to solve it please post an issue on GitHub. :)
2626
Drivers
2727
-------
2828

29-
See the README: https://github.com/fastplotlib/fastplotlib?tab=readme-ov-file#graphics-drivers
30-
3129
If you notice weird graphic artifacts, things not rendering, or other glitches try updating to the latest stable
3230
drivers.
3331

32+
More information is also available on the WGPU docs: https://wgpu-py.readthedocs.io/en/stable/start.html#platform-requirements
33+
34+
Windows
35+
^^^^^^^
36+
37+
Vulkan drivers should be installed by default on Windows 11, but you will need to install your GPU manufacturer's driver package (Nvidia or AMD). If you have an integrated GPU within your CPU, you might still need to install a driver package too, check your CPU manufacturer's info.
38+
39+
Linux
40+
^^^^^
41+
42+
You will generally need a linux distro that is from ~2020 or newer (ex. Ubuntu 18.04 won't work), this is due to the `glibc` requirements of the `wgpu-native` binary.
43+
44+
Install the drivers directly from your GPU manufacturer's website, after that you may still need to install mesa vulkan drivers:
45+
46+
Debian based distros::
47+
48+
sudo apt install mesa-vulkan-drivers
49+
50+
For other distros install the corresponding vulkan driver package.
51+
52+
Cloud compute
53+
~~~~~~~~~~~~~
54+
55+
See the WGPU docs: https://wgpu-py.readthedocs.io/en/stable/start.html#cloud-compute
56+
57+
Mac OSX
58+
^^^^^^^
59+
60+
WGPU uses Metal instead of Vulkan on Mac. You will need at least Mac OSX 10.13. The OS should come with Metal pre-installed, so you should be good to go!
61+
3462
GPU Info
3563
--------
3664

@@ -279,7 +307,7 @@ to ``fpl.select_adapter()``::
279307
Note that using this function reduces the portability of your code, because
280308
it's highly specific for your current machine/environment.
281309

282-
The order of the adapters returned by ``wgpu.gpu.enumerate_adapters()`` is
310+
The order of the adapters returned by ``fpl.enumerate_adapters()`` is
283311
such that Vulkan adapters go first, then Metal, then D3D12, then OpenGL.
284312
Within each category, the order as provided by the particular backend is
285313
maintained. Note that the same device may be present via multiple backends

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.