Coder Social home page Coder Social logo

Linking hdf5 files about jupyterlab-hdf5 HOT 7 CLOSED

jupyterlab avatar jupyterlab commented on May 17, 2024
Linking hdf5 files

from jupyterlab-hdf5.

Comments (7)

loichuder avatar loichuder commented on May 17, 2024 1

After a quick look in the code, ExternalLinks are indeed not yet supported. The fact that you can resolve them by using the same name is an edge case and even so, I am not convinced it works fully.

Some work in the extension is needed to handle the cases where the data comes from different files.

from jupyterlab-hdf5.

loichuder avatar loichuder commented on May 17, 2024 1

v0.8.0 adds a setting to enable link resolution. Closing this then.

from jupyterlab-hdf5.

loichuder avatar loichuder commented on May 17, 2024

If I understand correctly, you can only resolve the external link if the name of the external link matches the name of the group/dataset it links to ?

from jupyterlab-hdf5.

icoert avatar icoert commented on May 17, 2024

If I understand correctly, you can only resolve the external link if the name of the external link matches the name of the group/dataset it links to ?

Yes, indeed.

from jupyterlab-hdf5.

telamonian avatar telamonian commented on May 17, 2024

I cannot reproduce @icoert's original issue. The following code

with h5py.File('atomicfile.hdf5', 'w') as f:
    dataset = np.random.rand(100)
    f.create_dataset('testset', data=dataset)

with h5py.File('linkfile.hdf5', 'w') as f:
    f['foo'] = h5py.ExternalLink('atomicfile.hdf5', '/')
    print(f['foo/testset'])

prints out

<HDF5 dataset "testset": shape (100,), type "<f8">

which is exactly what you'd expect.

In any case, this seems more an issue for h5py than like an issue we should be dealing with in this PR. @icoert Were you having trouble with the Jupyterlab extension jupyterlab_hdf5, or was the issue just with the example h5py code that you posted?

from jupyterlab-hdf5.

icoert avatar icoert commented on May 17, 2024

In any case, this seems more an issue for h5py than like an issue we should be dealing with in this PR. @icoert Were you having trouble with the Jupyterlab extension jupyterlab_hdf5, or was the issue just with the example h5py code that you posted?

@telamonian, I am encountering the problem inside the viwer, it seems it's not related to h5py.

from jupyterlab-hdf5.

loichuder avatar loichuder commented on May 17, 2024

v0.7.0 now explicitly handles external and soft links.

Clicking on a link allows see to where it points but does not resolve it for now.

from jupyterlab-hdf5.

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.