From 145c8e5793c1912455b69658eddf9ce65c0cc0fb Mon Sep 17 00:00:00 2001 From: Emerson Andrade Date: Thu, 22 Sep 2022 14:53:45 -0300 Subject: [PATCH] requirements updated --- docs/requirements.txt | 1 + .../01_Getting_Started.ipynb | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index d53c4ba..c03615c 100755 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,6 @@ ipykernel numpy pyswarming +matplotlib nbsphinx sphinx_rtd_theme \ No newline at end of file diff --git a/docs/source/example_notebooks/01_Getting_Started.ipynb b/docs/source/example_notebooks/01_Getting_Started.ipynb index a0e56d1..d6b178a 100755 --- a/docs/source/example_notebooks/01_Getting_Started.ipynb +++ b/docs/source/example_notebooks/01_Getting_Started.ipynb @@ -23,6 +23,8 @@ "metadata": {}, "outputs": [], "source": [ + "%matplotlib inline\n", + "\n", "# importing the swarming behaviors\n", "import pyswarming.behaviors as ps\n", "\n", @@ -74,8 +76,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=480, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, { @@ -163,8 +165,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=480, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, { @@ -252,8 +254,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=480, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, { @@ -341,8 +343,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=720, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, { @@ -434,8 +436,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=480, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, { @@ -528,8 +530,8 @@ "anim = animation.FuncAnimation(fig, animate, init_func=init,\n", " frames=960, interval=1, blit=True)\n", "\n", - "anim\n", - "plt.show()" + "from IPython.display import HTML\n", + "HTML(anim.to_jshtml())" ] }, {