Skip to main content

Web graphical user interface for NWB conversion and exploring

Project description

NWB Web GUI

PyPI version

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

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwb-web-gui-0.1.4.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

nwb_web_gui-0.1.4-py3-none-any.whl (78.5 kB view details)

Uploaded Python 3

File details

Details for the file nwb-web-gui-0.1.4.tar.gz.

File metadata

  • Download URL: nwb-web-gui-0.1.4.tar.gz
  • Upload date:
  • Size: 74.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for nwb-web-gui-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f2682e4b6a6d30d6b51f887b16d11dc02a5c9fdb0b131e8e9e0f77d4b2c5d882
MD5 e6db8057076a19730039f74fc9bb8201
BLAKE2b-256 1df85587db08707777f898bf2720abefcb404f5bcf8d0e324f46877d7415eaa7

See more details on using hashes here.

File details

Details for the file nwb_web_gui-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: nwb_web_gui-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 78.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for nwb_web_gui-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 61527e962331f8d7ab69a08db027035fafbe63b29303736f89a3ef201f6c5207
MD5 cd2a9e4898598b1be7d5c7fc08674799
BLAKE2b-256 358bba7219bb798421dc280f8b5158e21e2da5cac1c933c26be5c95f7f2043b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page