Giter VIP home page Giter VIP logo

Comments (8)

blink1073 avatar blink1073 commented on August 17, 2024

cc @ellisonbg @fperez @SylvainCorlay

from qgrid.

ssanderson avatar ssanderson commented on August 17, 2024

@blink1073 this looks awesome! Making QGrid a widget is definitely something we're interested in. In fact, my first inclination would be to say that the widget view should be the default interaction mode. Do you imagine use-cases where you wouldn't want the interactive components? Does the widget view incur substantial performance overhead?

At any rate, I'd love to see a PR with what you have so far.

from qgrid.

ssanderson avatar ssanderson commented on August 17, 2024

cc @TimShawver

from qgrid.

llllllllll avatar llllllllll commented on August 17, 2024

This is really cool!

from qgrid.

blink1073 avatar blink1073 commented on August 17, 2024

@ssanderson, it has about the same overhead, but widget outputs are not stored within the notebook file, which means you lose the ability to interact with the data in a static view.

from qgrid.

ssanderson avatar ssanderson commented on August 17, 2024

but widget outputs are not stored within the notebook file,

Ah, that makes sense. There are cases where that's desirable though: notebooks with QGrid outputs can be much larger than normal notebooks, because we're rendering thousands of rows of data as in-line javascript object literals. I imagine that this could be made substantially more efficient by sending the data over a socket in a more appropriate serialization format and then doing the conversion to objects in Javascript.

w/r/t preserving the outputs, I wonder if what this wants is something like an Embed or a Render button that renders the output statically and writes it as HTML. That way you could work with the widget view interactively, and when you have an output you want to share/persist, you could hit Embed and have the widget view HTML/JS replaced with a static view of the data at the point when you hit the button.

I don't have a great sense of how hard that would be with the current state of the widget system, but it seems like it should work conceptually?

from qgrid.

blink1073 avatar blink1073 commented on August 17, 2024

See #27.

from qgrid.

TimShawver avatar TimShawver commented on August 17, 2024

PR has been merged to master.

from qgrid.

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.