NeurodataWithoutBorders / nwbwidgets

Explore the hierarchical structure of NWB 2.0 files and visualize data with Jupyter widgets.
https://nwb-widgets.readthedocs.io/en/latest/
Other
47 stars 22 forks source link

Documentation Bug for Calcium Imaging Data Tutorial #103

Open MarikeReimer opened 4 years ago

MarikeReimer commented 4 years ago

Description

I tried viewing the file created in the pynwb Calcium Imaging Data tutorial in a Jupyter notebook with NWB2Widgets. When viewing the the image segmentation group, I got an error message.

Steps to Reproduce

1) Go to: https://pynwb.readthedocs.io/en/stable/tutorials/domain/ophys.html#sphx-glr-tutorials-domain-ophys-py

2) At the bottom of the page, select Download Jupyter notebook: Ophys.ipynb

3) Open notebook and paste the following code at the bottom:

from nwbwidgets import nwb2widget io = NWBHDF5IO('ophys_example.nwb', mode='r') nwb = io.read() nwb2widget(nwb)

4) Select the processing module >ophys>ImageSegmentation.

5) After waiting a while for rendering, I got the following error:

Notebook validation failed: {'version_major': 2, 'version_minor': 0, 'model_id': '87c09359c2074c13891ca080691a0f53'} is not valid under any of the given schemas: { "version_major": 2, "version_minor": 0, "model_id": "87c09359c2074c13891ca080691a0f53" }

Environment

Python Executable: Conda
Python Version: 3.7
Operating System: Windows
HDMF Version: pynwb 1.3.0

Checklist

(https://github.com/NeurodataWithoutBorders/pynwb/issues)?

bendichter commented 4 years ago

@MarikeReimer Thanks for the report. I'm not quite sure what to make of this, but it looks like it may be an error with nwbwidgets, not pynwb. I'm going to move this over there until we can figure out what the root cause is.

oruebel commented 4 years ago

Just a thought, maybe Sphinx Gallery needs to be updated to create the notebooks in a new version of the notebook schema to work with nwb-widgets?