diff --git a/examples/Binder/2_Slithering_Snake.ipynb b/examples/Binder/2_Slithering_Snake.ipynb index d0dbc3b3..3ec91b97 100644 --- a/examples/Binder/2_Slithering_Snake.ipynb +++ b/examples/Binder/2_Slithering_Snake.ipynb @@ -25,7 +25,8 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install \"pyelastica[examples,docs]\"" + "!pip install \"pyelastica[examples,docs]\"\n", + "!conda install -c conda-forge ffmpeg -y" ] }, { @@ -629,7 +630,7 @@ " ax.set_xlim([0 - margin, 3 + margin])\n", " ax.set_ylim([-1.5 - margin, 1.5 + margin])\n", " with writer.saving(fig, video_name, dpi=100):\n", - " with plt.style.context(\"seaborn-whitegrid\"):\n", + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", " for time in range(1, len(t), step):\n", " rod_lines_2d.set_xdata(positions_over_time[time][2])\n", " rod_lines_2d.set_ydata(positions_over_time[time][0])\n", @@ -695,7 +696,7 @@ " linewidth=3,\n", " )[0]\n", " with writer.saving(fig, video_name, dpi=100):\n", - " with plt.style.context(\"seaborn-whitegrid\"):\n", + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", " for time in range(1, len(t), step):\n", " rod_lines_3d.set_xdata(positions_over_time[time][2])\n", " rod_lines_3d.set_ydata(positions_over_time[time][0])\n",