Giter Club home page Giter Club logo

Comments (9)

jtpio avatar jtpio commented on September 1, 2024

Maybe we could use a similar approach as @saulshanabrook did in https://github.com/Quansight-Labs/jupyter-widgets-takeover, instead of relying on the widget's pWidget.

from ipylab.

saulshanabrook avatar saulshanabrook commented on September 1, 2024

I spoke too soon, unfortunately...

Issue is we don't save the arguments to restorer.restore(tracker, options) anywhere so we have no way of re-restoring widgets later :(

from ipylab.

jtpio avatar jtpio commented on September 1, 2024

It sounds like it should be doable, but would maybe require writing a custom widget manager though.

from ipylab.

saulshanabrook avatar saulshanabrook commented on September 1, 2024

I got this working with my widgets factory... it's a bit zany though: https://github.com/Quansight-Labs/jupyter-widgets-takeover/blob/a0b2af7245e420297784eb9a4338b8f6e2c8747a/src/workspace.tsx#L60-L90

from ipylab.

jtpio avatar jtpio commented on September 1, 2024

But it looks functional :)

I guess it would even make sense to be able to remove the chrome in core lab as well.

from ipylab.

jtpio avatar jtpio commented on September 1, 2024

Ah I see you posted in jupyterlab/jupyterlab#2031 👍

from ipylab.

saulshanabrook avatar saulshanabrook commented on September 1, 2024

Yeah it's functional haha after many tears...

from ipylab.

dsblank avatar dsblank commented on September 1, 2024

I think this can be closed, now?

from ipylab.

jtpio avatar jtpio commented on September 1, 2024

Thanks @dsblank. Yes there is now basic support for this using the widget restoring process.

The next steps could be looking into more advanced layouts like in #48, and be able to restore the layout even if the widgets don't exist on the Python side yet (recreating them from a notebook path).

from ipylab.

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.