Visualization
The
dojo.vis
module is still in beta, and currently only works withUniV3Env
environments with a single pool.
Dojo Simulation Dashboard
Dojo provides an interactive simulation dashboard to visualize your runs.
You can launch the simulation dashboard with a separate Python script like this:
from dojo.vis.dashboard import run_app
run_app(8051, mode="prod", envs=["uniswap"])
Note that in this case the dashboard has been launched on port 8051
. If you run multiple simulations at the same time, each dashboard must run on its own port.
Now, when you use one of our runners, specify the same port:
sim_blocks, sim_rewards = backtest_run(
env, [mavg_policy, passive_lp_policy], dashboard_port=8051, auto_close=True
)
Screenshot
Here's a screenshot of the dashboard running in the browser:
![drawing](/docs/simulation-full.png)