Comments (9)
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.
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.
It sounds like it should be doable, but would maybe require writing a custom widget manager though.
from ipylab.
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.
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.
Ah I see you posted in jupyterlab/jupyterlab#2031 👍
from ipylab.
Yeah it's functional haha after many tears...
from ipylab.
I think this can be closed, now?
from ipylab.
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)
- Convert notebook with ipylab HOT 2
- docmanager:open called from ipylab takes absolute paths HOT 3
- list_commands() not working HOT 3
- example not working HOT 5
- app.commands.execute("notebook:run-all-below") does not work if cell collapsed
- Vscode Jupyter Extension: Unable to find widget 'ipylab' version '^0.6.0' from configured widget sources.
- Initialise widgets without going through a notebook HOT 3
- Previous cell execution HOT 5
- Complete rest of Title API
- Args for commands? HOT 3
- Panel and SplitPanel do not always render initially HOT 9
- Removing panel
- Exposing Jupyter(Lab) Contents HOT 1
- Purpose and Use Cases for ipylab HOT 3
- Execute notebook programatically has different behavior from running it on a Jupyter Notebook UI
- Disable "save widget state automatically" via notebook command? HOT 3
- Support of notebooks in VS Code? HOT 3
- Best practice inserting code into next cell
- Adding menus? HOT 1
- Problem with split panel on Mac HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipylab.