Integrating streamlit and jupyter notebook's IPython.display

I was trying to implement a simplified click-based Machine Learning builder utilizing Pycaret. One of the biggest issues that I faced was utilizing IPython.display modules, more specifically: display, HTML, clear_output, update_display.

What would be the best workaround to show the contents from the display module on streamlit? A bonus question would be how to auto-refresh the display to update the values every time a new model is updated.

Hi @Shawn_D_Souza, welcome to the Streamlit community!

This idea sounds similar to what I did here for another user:

The basic idea is to find where in your Python object you can get the HTML from, then display it. Additionally, we are trying to evaluate how we might automatically do something like this, so that all Jupyter widgets are displayed


1 Like