MetaCell / nwb-explorer

NWB Explorer is a web application to visualise and analyse the content of NWB:N 2 files
Other
23 stars 16 forks source link

Does nwbwidgets work in NWBE launched from a local machine? #311

Closed anhknguyen96 closed 2 years ago

anhknguyen96 commented 2 years ago

The NWB jupyter widgets in a NWBE launched from a local machine seems to not be functioning. The show() command returns a NameError

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [9], in <cell line: 1>()
----> 1 show()

NameError: name 'show' is not defined

and importing nwbwidgets in the notebook returns an AttributeError, detailed in this issue, which could stem from compatibility issues with some site packages (possibly ipywidgets)

pgleeson commented 2 years ago

The solution to this and your other issue https://github.com/OpenSourceBrain/DANDIArchiveShowcase/issues/22 might just be to create and test an updated version of NWBE with updated requirements, particularly pynwb 2.1.0. Do you want to try that in a fork of nwbe and test that locally, which can then be merged to the main nwbe for a new release?

anhknguyen96 commented 2 years ago

test an updated version of NWBE with updated requirements,

By this you mean latest versions for all the packages required for NWBE, or just those concerning ipysheet, ipywidgets and pynwb?

pgleeson commented 2 years ago

I think it should be sufficient to update the versions in this file: https://github.com/MetaCell/nwb-explorer/blob/master/requirements.txt, either to the latest release or versions that you require and test the local NWBE build

anhknguyen96 commented 2 years ago

Updated with this pull request https://github.com/MetaCell/nwb-explorer/pull/313. nwbwidgets now works.