Skip to content

Commit 0c0fb53

Browse files
EwoutHpre-commit-ci[bot]
authored andcommitted
Jupyter Viz: Don't avoid interactive backend (projectmesa#2165)
* Jupyter Viz: Don't avoid interactive backend We were avoiding the interactive backend, but that isn't recommended anymore and Solara should take care of that itself. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 95e8d81 commit 0c0fb53

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mesa/visualization/jupyter_viz.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import sys
2727
import threading
2828

29-
import matplotlib.pyplot as plt
3029
import reacton.ipywidgets as widgets
3130
import solara
3231
from solara.alias import rv
@@ -35,9 +34,6 @@
3534
import mesa.visualization.components.matplotlib as components_matplotlib
3635
from mesa.visualization.UserParam import Slider
3736

38-
# Avoid interactive backend
39-
plt.switch_backend("agg")
40-
4137

4238
# TODO: Turn this function into a Solara component once the current_step.value
4339
# dependency is passed to measure()

0 commit comments

Comments
 (0)