Commit 3477139f authored by eric pellegrini's avatar eric pellegrini
Browse files

updated demo notebook

parent c529b441
......@@ -7,29 +7,24 @@
%% Cell type:code id: tags:
``` python
import h5py
from hdfviewer.widgets.HDFViewer import HDFViewer
from hdfviewer.widgets.HDFViewer import HDFViewer, HDFViewerWidget
from hdfviewer.widgets.PathSelector import PathSelector
```
%% Cell type:code id: tags:
``` python
HDFViewer.info()
```
%% Cell type:code id: tags:
``` python
path = PathSelector(extensions=[".hdf",".h5",".nxs"])
path.widget
```
%% Cell type:code id: tags:
``` python
if path.file:
hdf5 = h5py.File(path.file,"r")
display(HDFViewer(hdf5))
hdf = h5py.File(path.file,"r")
widget = HDFViewerWidget(hdf)
display(widget)
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment