Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yu HU
hdf-viewer
Commits
f4bf4e40
Commit
f4bf4e40
authored
Feb 12, 2019
by
eric pellegrini
Browse files
fixed md code block bad syntax
parent
864d1363
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f4bf4e40
...
...
@@ -31,7 +31,7 @@ Prerequesites
Installation
=============
see
[
here
](
https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/jupyterlab-manager
)
for info
see
[
here
](
https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/jupyterlab-manager
)
for
complementary
info
-
`pip3 install --upgrade pip`
-
`pip3 install numpy`
-
`pip3 install h5py`
...
...
@@ -51,18 +51,20 @@ see [here](https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/ju
Usage in a notebook
===================
`%matplotlib ipympl`
```
%matplotlib ipympl
`
import h5py
`
`
from hdfviewer.widgets.HDFViewer import HDFViewer
`
`
from hdfviewer.widgets.PathSelector import PathSelector
`
import h5py
from hdfviewer.widgets.HDFViewer import HDFViewer
from hdfviewer.widgets.PathSelector import PathSelector
`
path = PathSelector(extensions=[".hdf",".h5",".nxs"])
`
`
path.widget
`
path = PathSelector(extensions=[".hdf",".h5",".nxs"])
path.widget
`if path.file:`
  
`hdf5 = h5py.File(path.file,"r")`
  
` display(HDFViewer(hdf5))`
if path.file:
hdf5 = h5py.File(path.file,"r")
display(HDFViewer(hdf5))
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment