Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axil/qtinteract
https://github.com/axil/qtinteract
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/axil/qtinteract
- Owner: axil
- Created: 2024-01-29T10:29:28.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-26T09:27:37.000Z (8 months ago)
- Last Synced: 2024-10-01T06:26:46.313Z (3 months ago)
- Language: Python
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qtinteract
A library for building fast interactive plots in Jupyter notebooks using Qt Widgets.
## Installation
pip install qtinteract
## Usage
```python
%gui qt5from math import pi
from qtinteract import iplotdef f(x, a):
return np.sin(a*x)x = np.linspace(0, 2*pi, 101)
iplot(x, f, a=(1., 5.))
```
![image](https://github.com/axil/qtinteract/assets/170910/c36fe65e-f0bd-49f5-a6f5-44abdb09a037)## Troubleshooting
* "Kernel died": you forgot to run `%gui qt5`.
* The window with the plot and the slider does not appear. Look at the taskbar, it might appear behind the browser.