{"repo":"AnswerDotAI/fastprogress","free":true,"listed":false,"github":"https://github.com/AnswerDotAI/fastprogress","clone":"git clone https://github.com/AnswerDotAI/fastprogress.git","description":"Simple and flexible progress bar for Jupyter Notebook and console","language":"Jupyter Notebook","stars":1098,"topics":["python","developer-tools","plots","jupyter-notebook"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"fastprogress A fast and simple progress bar for Jupyter Notebook and console. Install To install simply use Usage Example 1 Here is a simple example. Each bar takes an iterator as a main argument, and we can specify the second bar is nested with the first by adding the argument parent=mb . We can then: - add a comment in the first bar by changing the value of mb.main bar.comment - add a comment in the second bar by changing the value of mb.child.comment - write a line between the two bars with mb.write('message') Example 2 To add a graph that get plots as the training goes, just use the command mb.update graphs . It will create the figure on its first use. Arguments are: - graphs : a list of graphs to be plotted (each of the form [x,y] ) - x bounds : the min and max values of the x axis (if None , it will those given by the graphs) - y bounds : the min and max values of the y axis (if None , it will those given by the graphs) Note that it's best to specify x bounds and y bounds , otherwise the box will change as the loop progresses. Additionally, we can give the label of each graph via the command mb.names (should have as many elements as the graphs argument). Here is the rendering in console: If the script using this is executed with a redirect to a file, only the results of the .write method will be printed in that file. Example 3 Here is an example that a typical machine learning training loop can use. It also demonstrates how to set y bounds dynamically. And here is an em","default_branch":null,"files":null,"tree":[],"storefront":"/r/AnswerDotAI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AnswerDotAI/fastprogress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}