Giter Club home page Giter Club logo

Comments (4)

giovannipcarvalho avatar giovannipcarvalho commented on August 29, 2024 4

There's a workaround: jupyter-widgets/ipywidgets#1744

Basically have one cell with the following:

from ipywidgets import Output
OUTPUT_CONTEXT = Output()
display(OUTPUT_CONTEXT)

and wrap liveloss.draw() in the context:

[...]
with OUTPUT_CONTEXT:
    liveloss.draw()
[...]

The disadvantage is that the plots appear in a separate cell and above the training loop, but my tqdm bars are showing just fine (and not being cleared).

from livelossplot.

stared avatar stared commented on August 29, 2024

@pinouchon I am aware of this "feature". I mean, for Keras outputs it works for me - I can get a progress bar but avoid getting a wall of logs.

For other applications - well, I would love to learn if there is a workaround.

from livelossplot.

stared avatar stared commented on August 29, 2024

The thread that motivated me to write livelossplot https://www.reddit.com/r/MachineLearning/comments/65jelb/d_live_loss_plots_inside_jupyter_notebook_for/ discusses various ways of clearing plots. Unless I miss something, I don't see a solution.

Some HTML-based techniques (with direct interactions with cell) may help - i.e. removing the previous version from HTML level.

from livelossplot.

stared avatar stared commented on August 29, 2024

With @Bartolo1024 we made a substantial rewrite, to allow custom operations before plotting, after each metrics subplot, and after all plots (starting from release 0.5.2). See #73 and https://github.com/stared/livelossplot/blob/master/examples/various_options.ipynb.

Is it possible with the current setup, or some other changes are needed?

from livelossplot.

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.