A floatview output widget for JupyterLab + GlueViz Visualization with plotly
Project description
# Floatview Stats
<table>
<tr>
<td>Latest Release</td>
<td>
<a href="https://pypi.org/project/floatview/"/>
<img src="https://badge.fury.io/py/floatview.svg"/>
</td>
</tr>
<tr>
<td>PyPI Downloads</td>
<td>
<a href="https://pepy.tech/project/floatview"/>
<img src="https://pepy.tech/badge/floatview/month"/>
</td>
</tr>
</table>
# Floatview
A floatview output widget for JupyterLab and a data explorer for glue/iplotly
## Installation
If you use jupyterlab:
```bash
pip install floatview
jupyter labextension install @jupyterlab/plotly-extension@0.18.1
jupyter labextension install plotlywidget@0.6.0
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-floatview
```
## Usage
The floatview widget is used as a context manager, just like ipywidgets' output
widget.
```python
from floatview import Floatview
from ipywidgets import IntSlider
sc = Floatview(title='Floatview Output', mode='tab-after')
sl = IntSlider(description='Some slider')
with sc:
display(sl)
```
When a single output is displayed in a Floatview, it is allowed to occupy all of
the vertical space available. If more content is displayed, the natural height
is used instead.
The gluemanagerwidget is used as a data/visualization manager for a glue dataset.
```python
from floatview import GlueManagerWidget
from pandas import read_csv
data = read_csv('your_data.csv', index_col=False, usecols=cols)
gmw = GlueManagerWidget(subtab, modal=True, label="Data")
```
![floatview](floatview.png)
<table>
<tr>
<td>Latest Release</td>
<td>
<a href="https://pypi.org/project/floatview/"/>
<img src="https://badge.fury.io/py/floatview.svg"/>
</td>
</tr>
<tr>
<td>PyPI Downloads</td>
<td>
<a href="https://pepy.tech/project/floatview"/>
<img src="https://pepy.tech/badge/floatview/month"/>
</td>
</tr>
</table>
# Floatview
A floatview output widget for JupyterLab and a data explorer for glue/iplotly
## Installation
If you use jupyterlab:
```bash
pip install floatview
jupyter labextension install @jupyterlab/plotly-extension@0.18.1
jupyter labextension install plotlywidget@0.6.0
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-floatview
```
## Usage
The floatview widget is used as a context manager, just like ipywidgets' output
widget.
```python
from floatview import Floatview
from ipywidgets import IntSlider
sc = Floatview(title='Floatview Output', mode='tab-after')
sl = IntSlider(description='Some slider')
with sc:
display(sl)
```
When a single output is displayed in a Floatview, it is allowed to occupy all of
the vertical space available. If more content is displayed, the natural height
is used instead.
The gluemanagerwidget is used as a data/visualization manager for a glue dataset.
```python
from floatview import GlueManagerWidget
from pandas import read_csv
data = read_csv('your_data.csv', index_col=False, usecols=cols)
gmw = GlueManagerWidget(subtab, modal=True, label="Data")
```
![floatview](floatview.png)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
floatview-0.1.7.tar.gz
(11.4 MB
view hashes)
Built Distribution
Close
Hashes for floatview-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fde3f2fb3035fa47d27d3e69f40f35441fb9e3360f882ed7f83d3057aca63e |
|
MD5 | dcb5bf31c329dcbfb24539bb306ffc35 |
|
BLAKE2b-256 | de282daf43f22aeb1efa75590ad633320776e3c1c668e99d7908d85aa04663fd |