Jupyter, Interactive Matplotlib: Hide Interactive View Toolbar

I am starting to use the interactive chart from Matplotlib:

%matplotlib notebook
import matplotlib.pyplot as plt
fig, axes = plt.subplots(1, figsize=(8, 3))
plt.plot([i for i in range (10)],np.random.randint(10, size=10))     
plt.show()

enter image description here

Does anyone know if there is a way to hide the interactive mode toolbars?

+4
source share
1 answer

I disabled the interactive mode buttons and toolbar using css created by python. Do the following in one of the notebook cells:

%%html
<style>
.output_wrapper button.btn.btn-default,
.output_wrapper .ui-dialog-titlebar {
  display: none;
}
</style>

, css, , , , . , .

+2

Source: https://habr.com/ru/post/1668220/


All Articles