Closed Podolyakofs closed 7 months ago
Can confirm the issue above.
Thanks for the report !
The issue may be due to the patching I did to prevent the fetching of the file.
Hopefully, this should no longer be needed since we now only support JLab4 that has the file format null
. So, it may be as simple as removing the patching and set the file format to null
in HDF5_FILE_TYPE
. To be tested :shrug:
I will gladly accept a PR or a report on whether this fixes the issue. Otherwise, this will have to wait a bit until I find time to work on it.
On second thought, that may be completely unrelated :joy:
I am wondering how Y.js (the tech powering the sharing of files in collaboration mode) deals with binary files. I understand it can work with plain text such as CSV but that may be another story with HDF5 files.
I am wondering how Y.js (the tech powering the sharing of files in collaboration mode) deals with binary files.
I was testing the new RTC version the whole day yesterday and still have the issue that the created .ipynb
files are not saved :D (Was problem on my site)
I would expect that people will rather rarely edit HDF5 files in the collaborative mode in way like people edit .ipynb
files. Maybe we should request to handle the "plain text" files (like .txt, .scv etc) with Y.js and then just ignore all other files formats which they cannot handle correctly.
Hello, @loichuder
I guess this issue is realated to this issue: https://github.com/jupyterlab/jupyter-collaboration/issues/183#issuecomment-1697679929
I believe they argue that need to be fixed on the extension site.
Thanks for following that up @lrlunin, it indeed sheds some light on the issue.
I will wait for JLab maintainers' answer to my comment to see if JLab has a consistent way of accessing custom drives (that is used for collaborative mode). If not, I will have to patch something together myself.
I just ran into this issue, is there a known workaround? I'm using JLab 4 and the latest jupyterlab-h5web versions.
Sorry, it has been a while before I got back to this. Next release should include a quick and dirty fix.
I just released jupyterlab-h5web 12.0.0 that includes the aforementioned fix.
Since I don't use RTC myself, I was only able to do basic checks and I am not convinced it was the best way of solving the issue.
If anyone can test and report, that would be greatly appreciated. I'll leave this issue open and you are welcome to post further comments if additional problems are encountered.
Checked the last version - got same error
File not found: 'RTC:discharges/2024/202402/20240226/M/647M 2024-02-26 13:56:07.nxs'
tornado.web.HTTPError: HTTP 404: Not Found (File not found!)
[W 2024-02-26 19:28:38.604 ServerApp] 404 GET /h5web/meta/?file=RTC:discharges%2F2024%2F202402%2F20240226%2FM%2F647M+2024-02-26+13:56:07.nxs&path=%2F (8d227a79e2e046ffa52fec4815b54a01@192.168.195.209) 2.36ms referer=http://hdfcon.tkmk:8888/lab/tree/RTC%3Adischarges/2024/202402/20240226/M
Also in 12.0.0 get In previous version (11.1) there is no error
Thanks for checking @Podolyakofs
I'll have a second look
It seems to run fine on my end. I'll try to reproduce the error with the same parameters as you.
@Podolyakofs could you give me:
pip freeze/list
)Expected Group
)That would be very helpful for me to debug, thanks.
Checked on new machine - looks like everything works!
Great to read :relieved: !
I'll keep following discussions on the JLab repo in case there is a better way of fixing it
I'm using the latest version of H5Web and I still can't open the files if I use the collaborative mode =( is there something extra I should do or it's a matter of waiting for future releases?
I'm using the latest version of H5Web and I still can't open the files if I use the collaborative mode =( is there something extra I should do or it's a matter of waiting for future releases?
How do you start collaborative mode? As I understand in jupyterlab v4+ the only need is the jupyter-collaboration-extension installed/enabled and --collaborative flag is not used anymore during startup
Sorry @betolink , I missed your comment :disappointed:
The release is done: it should work with version 12.0.0 of the extension.
As @Podolyakofs, I am also curious to know how you start the collaborative mode.
As @Podolyakofs, I am also curious to know how you start the collaborative mode.
Before Jupyter v4 (for jupyter v3) I start with
jupyter lab --no-browser --ip "*" \
--notebook-dir /home/main/jupyter
--collaborative
after they separate collaboration into plugin (jupyter v4) I start only with:
jupyter lab --no-browser --ip "*" \
--notebook-dir /home/main/jupyter
(and enabled extention)
Here is the issue about it https://github.com/jupyterlab/jupyter-collaboration/issues/194 (that flag now is enabled by default if plugin is installed)
I think there can be some errors if use that flag in J v4 with RTC extention enabled
Screenshots for J v4:
If there is no more reports, I'll close this as completed. As mentioned, I will still check if another "more official" way of solving this emerges
Good day, don't know if this bug is for jyputer-h5web or for jupyter-collaboration
In jupyterlab v4 with collaborative mode got file not found because of adding "RTC:" to filepath - for example "File not found: 'RTC:discharges/2023/202306/20230629/T/1230T 2023-06-29 13:03:54.nx"
H5Web("discharges/2023/202306/20230629/T/1230T 2023-06-29 13:03:54.nx") - works
To Reproduce
Try to open hdf5/nexus file in jupyterlab with jypyter-collaboration enabled
Expected behaviour
Open file without error
Screenshots
For example csv works
but to open from python (with open(..)) "RTC:path" needs to be changed to "path")
Context
Extension lists