Note
Click here to download the full example code
my_example.py
Here is a plot example
import matplotlib.pyplot as plt
_ = plt.plot([1,2,3])

pandas dataframes have a html representation, and this is captured:
import pandas as pd
df = pd.DataFrame({'col1': [1,2,3],
'col2': [4,5,6]})
print( df )
s = pd.Series([1,2,3])
col1 col2
0 1 4
1 2 5
2 3 6
Total running time of the script: ( 0 minutes 0.308 seconds)