Make stream working in notebook

Iโ€™m very interested by the streaming option of plotly but I need this offline, in my notebook. I want this feature because I want to have a plot inside a for loop. Doing it without streaming display all the plots created in the for loop side by side, not what I want.

Anyone can help me on this as after searching the web for 2 days, still canโ€™t find the solution.

Thanks a lot

@hyliu1989 Made a very nice solution here: