Skip to content

Commit

Permalink
Jupyter Viz: Don't avoid interactive backend (#2165)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
EwoutH and pre-commit-ci[bot] committed Jul 4, 2024
1 parent 74e2df6 commit e8d8b4e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mesa/visualization/jupyter_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import sys
import threading

import matplotlib.pyplot as plt
import reacton.ipywidgets as widgets
import solara
from solara.alias import rv
Expand All @@ -35,9 +34,6 @@
import mesa.visualization.components.matplotlib as components_matplotlib
from mesa.visualization.UserParam import Slider

# Avoid interactive backend
plt.switch_backend("agg")


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

0 comments on commit e8d8b4e

Please sign in to comment.