Giter VIP home page Giter VIP logo

Comments (3)

TimShawver avatar TimShawver commented on July 18, 2024

Not possible yet, but that's a cool idea. Soon you'll be able to edit the values in the data frame thanks to this pull request: #27 but filters don't cause rows to be added/removed from the data frame.

from qgrid.

TimShawver avatar TimShawver commented on July 18, 2024

Hi @dacoex, what you're asking for is almost possible now. show_grid is a convenience function, and in the latest version of qgrid you can use the widget object directly to render a qgrid, like so:

from IPython.display import display
grid = qgrid.QGridWidget(df=spy)
display(grid) #alternative to show_grid

This would allow you get the underlying DataFrame object using grid.df and then you could pass it into your plot function as you did with df_new in your example. The only problem left is I doubt that your plotting library would automatically pick up on the edits to the DataFrame until you rerun the cell to generate the plot again. So I think you'll find that after you make edits, you'll need to execute the cell with the scatter function again to re-plot the DataFrame.

I'm sure it's possible to automate that but it would be specific to the plotting library. For that reason I don't think it's a problem that would be worthwhile for this project, so I'm closing this issue.

from qgrid.

dacoex avatar dacoex commented on July 18, 2024

thanks!.

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.