from IPython.html.widgets import interact, interactive, fixed from matplotlib import pyplot as plt from IPython.display import clear_output, display, HTML %run ph2co_grid_computation_mm.py %run -i interactive_setup_mm.py run_plot_temden() from matplotlib.ticker import FuncFormatter fig = plt.figure(figsize=(16,10)) ax = fig.gca() ax.yaxis.set_major_formatter(FuncFormatter(lambda x,y: str(densities[int(x)]) if x