By default, the Lovely functions will call plt.close(fig) on the figures they create.
This prevents displaying the figures twice when running in Jupyter.
If you are not using Jupyter, here are 2 configuration options you might want to set:
fig_close=False
#!/usr/bin/env pythonfrom lovely_tensors import config, set_config...set_config(fig_close=False)numbers.chans()# or, using the context manager:with config(fig_close=False): numbers.chans()plt.show() # Will show all open figures
fig_show=True
If set, lovely will call plt.show() after each figure creation.
You donβt need to set fig_close=False manually.
set_config(fig_show=True)numbers.chans() # Figure generated and shown# Note, you have to use the "call" syntax `( )`, as figure# generation is not triggerd by just accessing the attributenumbers.chans # No figure generatedf = numbers.plt.fig # figure generated, shown, and returned.