Git Product home page Git Product logo

Comments (6)

t20100 avatar t20100 commented on June 12, 2024

There is an issue for the integration of h5web in JLab file browser which needs to be solved in jupyterlab (see #24): There is no way to avoid loading the hdf5 file in the browser!.... so next version of JLab v3.1.x will be needed (jupyter-slurm runs JLab v2).

There is no such issue when opening a file from within a notebook (within JLab):

from jupyterlab_h5web import H5Web
H5Web('<path to the HDF5 file>')

https://github.com/silx-kit/jupyterlab-h5web#in-jupyter-notebooks
This should avoid at least the time for the first loading of a file.

from jupyterlab-h5web.

jpcbertoldo avatar jpcbertoldo commented on June 12, 2024

Ok, thanks!

Just to be sure: to use it in my own jupyterlab installation, so I need to install jupyterlab-h5web in the jupyterlab's environment or on the kernel's environment (I use different kernels)? Or both?

Last but not least, is JLab v2 --> JLab v3.1.X upgrade supposed to happen anytime soon? I'm just wondering so I can organize my own priorities.

from jupyterlab-h5web.

t20100 avatar t20100 commented on June 12, 2024

to use it in my own jupyterlab installation, so I need to install jupyterlab-h5web in the jupyterlab's environment or on the kernel's environment (I use different kernels)? Or both?

Both: kernel side for the jupyterlab_h5web import in the notebook, jupyterlab side for enabling the feature in JLab.
On JLab side, you might also need to rebuild JLab (see https://github.com/silx-kit/jupyterlab-h5web#install)

is JLab v2 --> JLab v3.1.X upgrade supposed to happen anytime soon?

Not soon, to upgrade it requires quite a bit of change in the jupyter-slurm installation first (to workaround incompatibilty of matplotlib version installed on the system and JLab 3 compatible extension), and it's not my priority for now.

from jupyterlab-h5web.

loichuder avatar loichuder commented on June 12, 2024

Hello @joaopcbertoldo and thanks for the feedback ! To add on @t20100 comments:

  • Even though jupyterlab-h5web only officially supports JupyterLab 2.x, CI tests should ensure that the extension should work for JupyterLab 3.0.x. Note that so far (v0.0.9 and below), the extension does not work with JupyterLab 3.1.x (see #49).
  • Even if we release a version of jupyterlab-h5web compatible with JupyterLab 3.1.x (which we will do!), this will not fix #24 straight away. There are still roadblocks on the way that I need to overcome by changing things in the extension and in core JupyterLab. That is why we put forward the opening of files in the notebook rather than in the browser.
  • Now getting back to the issues you reported, I expect 4. to be due to #24 so there is not much to be done.
  • The other operations seem indeed slower than what I would expect so I will investigate. I will have a go with your files to see if I get the same.

from jupyterlab-h5web.

loichuder avatar loichuder commented on June 12, 2024

As already mentioned, the root issue is that opening an h5web tab by double-clicking on a file fetched the whole file as a base64 blob. Not only this is quite inefficient but also pending requests of this type will slow down the whole "regular" fetching process.

I thought we needed to wait for a newer version of JLab to remove this blob fetching but I was able to bypass the problematic machinery in 0.0.10. Therefore, 0.0.10 removed this blob fetching.

Getting back to the issue at hand: 0.0.10 is now deployed on jupyter-slurm and I tried all the operations above. Except for the external links one (3.), I found that operations were way faster than what you presented so I would invite you to retry and tell us if you get the same impression.

from jupyterlab-h5web.

loichuder avatar loichuder commented on June 12, 2024

Latest versions (1.1.0 and 0.0.14) fix 3. and I already mentioned that other points are fixed for versions above 0.0.10.

Therefore I will now close this issue. We can reopen if needed.

from jupyterlab-h5web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.