-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hosting nwbwidgets #19
Comments
Eduardo, resources If the cache is enabled, it could get quite large. It might be better to links to specific files One option would be to launch the Panel widget and Another option is, as you suggest, to run NWB Widgets on a specific s3 import fsspec
import h5py
import pynwb
from nwbwidgets import nwb2widget
fs = fsspec.filesystem("http")
# open the file
f = fs.open(s3_url, "rb")
file = h5py.File(f)
io = pynwb.NWBHDF5IO(file=file, load_namespaces=True)
nwbfile = io.read()
nwb2widget(nwbfile) |
@bendichter, thanks for the feedback. it sounds like someone on your team can work on making the changes to On our end, I noticed that the app I initially deployed crashed because it ran out of disk space, so I'll check our configuration and ensure that there's reasonable disk space so this doesn't happen. Would a couple of GB be enough? I think the combination of the changes you're proposing to Of course, we can make changes down the road as we see fit, but sounds like this would be enough for the first version. |
hi @edublancas Regarding the caching problem, once NeurodataWithoutBorders/nwbwidgets#316 gets merged, you'll be able to disable it, so storage errors should stop happening. For that, you'd like to run Panel like this:
|
alright, I updated the deployment: https://autumn-dew-6622.ploomberapp.io/ I followed @bendichter's snippet, you can now pass a source code is here: https://github.com/ploomber/doc/blob/main/examples/deployments/nwbwidgets/app.ipynb I guess if we use is the plan to include this as an option in the dandiarchive menu? |
that's a neat solution! |
@bendichter any feedback or next steps? |
closing this due to inactivity - I'll delete the deployed app but feel free to create a free account on our platform and deploy it again (source code) |
and if you have any questions, feel free to reach out! |
hi @bendichter,
as discussed. I deployed nwbwidgets in Ploomber Cloud, here's the live app: https://ploomberapp.io/dry-field-0371 (provisional URL)
A few pending items:
resources
when running some examples, I noticed that some of the nwb files are quite large. Looks like nwbwidgets is streaming them and that alleviates how much storage is required.
do you have a ballpark estimate of how much storage is ok? also, are files removed automatically? (otherwise, we'll have to come up with a mechanism to clean up the disk)
links to specific files
we also discussed having URLs to specific files. This is currently implemented in the DANDI Archive, where we can click on the three dots and have a direct link to visualize the dataset:
We can add a similar thing. Example: https://ploomberapp.io/dry-field-0371?dataset=path/to/dataset/in/s3
I found out that voila already supports this (example) but I couldn't find a way to pass this to nwbwidgets.
Is there a way to do something like this:
This way, once the voila app begins, it'd automatically display the selected dataset.
anything else I missed or you want for this deployment?
The text was updated successfully, but these errors were encountered: