-
Notifications
You must be signed in to change notification settings - Fork 22
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
Docker voila #226
Docker voila #226
Conversation
lgtm, we just need to wait for the next pynwb release |
Codecov Report
@@ Coverage Diff @@
## master #226 +/- ##
==========================================
+ Coverage 68.60% 69.03% +0.43%
==========================================
Files 29 30 +1
Lines 2086 2157 +71
==========================================
+ Hits 1431 1489 +58
- Misses 655 668 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
So how would someone use this? |
Oh I see it launches the panel. Could you also allow it to take as input a file path or s3 path in which case it just renders that file? |
sure! but then this would be a modification to the Panel, I can make it in a next PR, together with other improvements (e.g. auto-filling the list of existing DANDIsets, etc...) |
Would that work? Wouldn't you need to pass a variable to modify the contents of the notebook? |
The Panel itself should have one extra functionality to be able to read from any S3 path, which is not difficult to implement, it is already doing so indirectly by getting the S3 path from a DANDI set. We wouldn't have to change anything when running the container |
would it be possible to make this docker function able to take an s3 path as input? That would allow us to, e.g. create a button on a web interface and launch a viewer for a specific NWB file. |
@bendichter I changed it now so it works in the following way (see also README):
|
using an environmental variable! smart! I'm just going to test this out on my own computer, then it's good to go |
When I try to load a local file I'm getting "Invalid local dir path" |
@bendichter yes I can improve this layout
if you're running this container, you're getting the local file error because there's no such file inside your container |
that wouldn't be true in the case of running a container which has mounted a virtual file system, which might be the case of DANDI servers! But then it would just be a matter of running Panel with the local_source=True in that case |
What I'd also like to do related to this is adding to the documentation:
but I can also add these in a separate PR later if you'd like to merge this as it is now |
Co-authored-by: Ben Dichter <ben.dichter@gmail.com>
Panel()
Depends on #225