Coder Social home page Coder Social logo

Comments (1)

mands avatar mands commented on May 19, 2024

One solution would be to regenerate/overwrite the report with the both the old and the new content. However we're looking at adding an append mode so you can append additional graphs/plots to an existing published report, e.g. report.publish(name="my report", update_mode="append") - this would update the existing report "my report" with the additional plots/graphs/text/etc. - would that solve your use-case?

If you want to modify within the same script instance, you can modify your report object as much as needed until you publish it, i.e.

def func_a() -> List[Blocks]:
   return [dp.Plot(a), dp.Plot(b)]

def func_b() -> List[Blocks]:
   return [dp.Plot(c), dp.Table(df)

blocks = func_a() + func_b()
r = Report(blocks=blocks).publish(...)

or you can use the dp.Group functionality to collect together blocks rather than storing in a list. We also plan on adding some additional helper functions here to make it easier to modify an existing report object, e.g. add blocks, pages, etc., before publishing.

from datapane.

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.