Jupyter, Interactive Matplotlib: Hide the toolbar of the interactive view

后端 未结 1 1705
慢半拍i
慢半拍i 2021-02-20 11:38

I am starting using the interactive plotting from Matplotlib:

%matplotlib notebook
import matplotlib.pyplot as plt
fig, axes = plt.subplots(1, figsize=(8, 3))
pl         


        
1条回答
  •  轮回少年
    2021-02-20 11:51

    I disabled the interactive mode buttons and toolbar with some python generated css. Run the following in one of the notebook cells:

    %%html
    
    

    Unfortunately there's no good css selectors on the buttons, so I've tried to use as specific selector as possible, though this may end up disabling other buttons that you might generate in the output cell. Indeed, this approach affects all output cells in the notebook.

    0 讨论(0)
提交回复
热议问题