NWB Web GUI
Web graphical user interface for NWB conversion and visualization.
1. Installation
From PyPI:
$ pip install nwb-web-gui
From a local copy of the repository:
$ git clone https://github.com/catalystneuro/nwb-web-gui.git
$ cd nwb-web-gui
$ pip install .
2. Running
From command line shortcut:
$ nwbgui
From repository local copy:
$ python wsgi.py
NWB Web GUI by default runs on localhost:5000.
3. Running on docker container (referencing a local folder)
- Change on config.ini file the NWB_GUI_ROOT_PATH to /usr/src/nwb_web_gui/files
- build docker with:
$ docker build -t latest .
- run the docker with:
$ docker run -it -p 5000:5000 -p 8866:8866 -v /host/path/to/filesFolder:/usr/src/nwb_web_gui/files <image_id>
4. Run NWB Web GUI for a specific NWB Converter
NWB Web GUI can be set to run with any specific NWB converter:
from nwb_web_gui import init_app
import os
# Set ENV variables for app
# Set root path from where to run the GUI
data_path = '/source_path'
os.environ['NWB_GUI_ROOT_PATH'] = data_path
# Set which NWB GUI pages should be displayed
os.environ['NWB_GUI_RENDER_CONVERTER'] = 'True'
os.environ['NWB_GUI_RENDER_VIEWER'] = 'True'
os.environ['NWB_GUI_RENDER_DASHBOARD'] = 'False'
# Choose NWB converter to be used
os.environ['NWB_GUI_NWB_CONVERTER_MODULE'] = 'my_lab_to_nwb'
os.environ['NWB_GUI_NWB_CONVERTER_CLASS'] = 'MylabNWBConverter'
# Choose port where the GUI will run. Default is 5000
port = 5000
print(f'NWB GUI running on localhost:{port}')
print(f'Data path: {data_path}')
# Initialize app
app = init_app()
# Run app
app.run(
host='0.0.0.0',
port=port,
debug=False,
use_reloader=False
)
5. Documentation
Metadata
Release files for nwb-web-gui 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nwb-web-gui-0.1.6.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nwb_web_gui-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.9 kB
Release files / nwb-web-gui-0.1.6.tar.gz
| Download URL | nwb-web-gui-0.1.6.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed8f9743ced24e8b5717572f3cda6ff6e5e2dcefd7ced0fb3383f88203339fc2
|
|
BLAKE2b-256 checksum How to use checksums |
432b899c40dbbe4633684affd249f609159e727b1bdd10101562af943c2af3c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|
Release files / nwb_web_gui-0.1.6-py3-none-any.whl
| Download URL | nwb_web_gui-0.1.6-py3-none-any.whl |
|---|---|
| Size | 85.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db8f3aec00405665b493e538bd9f3e7f0e39063d817f3623dbf46589e741d9f3
|
|
BLAKE2b-256 checksum How to use checksums |
a4243feabdbf574fc1ca4ad75c0679ef3b8e978c82d0239004a19aaaf57a5a93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|