Skip to content

Commit

Permalink
Update black (#339) (#340)
Browse files Browse the repository at this point in the history
(cherry picked from commit 19630ee)

Co-authored-by: Steve Wood <[email protected]>
  • Loading branch information
mergify[bot] and woodsp-ibm authored May 9, 2024
1 parent 0481c34 commit 63a3c06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docs/tutorials/11_time_series.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@
],
"source": [
"print(\"The underlying evolution of stock prices:\")\n",
"for (cnt, s) in enumerate(data._tickers):\n",
"for cnt, s in enumerate(data._tickers):\n",
" plt.plot(data._data[cnt], label=s)\n",
"plt.legend()\n",
"plt.xticks(rotation=90)\n",
"plt.show()\n",
"\n",
"for (cnt, s) in enumerate(data._tickers):\n",
"for cnt, s in enumerate(data._tickers):\n",
" print(s)\n",
" print(data._data[cnt])"
]
Expand Down Expand Up @@ -231,7 +231,7 @@
" seed=1,\n",
")\n",
"data.run()\n",
"for (cnt, s) in enumerate(data._tickers):\n",
"for cnt, s in enumerate(data._tickers):\n",
" plt.plot(data._data[cnt], label=s)\n",
"plt.legend()\n",
"plt.xticks(rotation=90)\n",
Expand Down Expand Up @@ -345,13 +345,13 @@
"if token != \"REPLACE-ME\":\n",
" if wiki._data:\n",
" print(\"The underlying evolution of stock prices:\")\n",
" for (cnt, s) in enumerate(stocks):\n",
" for cnt, s in enumerate(stocks):\n",
" plt.plot(wiki._data[cnt], label=s)\n",
" plt.legend()\n",
" plt.xticks(rotation=90)\n",
" plt.show()\n",
"\n",
" for (cnt, s) in enumerate(stocks):\n",
" for cnt, s in enumerate(stocks):\n",
" print(s)\n",
" print(wiki._data[cnt])\n",
" else:\n",
Expand Down Expand Up @@ -398,7 +398,7 @@
" end=datetime.datetime(2016, 1, 2),\n",
" )\n",
" nasdaq.run()\n",
" for (cnt, s) in enumerate(nasdaq._tickers):\n",
" for cnt, s in enumerate(nasdaq._tickers):\n",
" plt.plot(nasdaq._data[cnt], label=s)\n",
" plt.legend()\n",
" plt.xticks(rotation=90)\n",
Expand Down Expand Up @@ -442,7 +442,7 @@
" end=datetime.datetime(2018, 12, 31),\n",
" )\n",
" lse.run()\n",
" for (cnt, s) in enumerate(lse._tickers):\n",
" for cnt, s in enumerate(lse._tickers):\n",
" plt.plot(lse._data[cnt], label=s)\n",
" plt.legend()\n",
" plt.xticks(rotation=90)\n",
Expand Down Expand Up @@ -483,7 +483,7 @@
" end=datetime.datetime(2021, 12, 31),\n",
" )\n",
" data.run()\n",
" for (cnt, s) in enumerate(data._tickers):\n",
" for cnt, s in enumerate(data._tickers):\n",
" plt.plot(data._data[cnt], label=s)\n",
" plt.legend(loc=\"upper center\", bbox_to_anchor=(0.5, 1.1), ncol=3)\n",
" plt.xticks(rotation=90)\n",
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
coverage>=4.4.0
matplotlib>=2.1
black[jupyter]~=22.0
black[jupyter]~=24.1
pylint>=2.16.2
pylatexenc>=1.4
stestr>=2.0.0
Expand Down

0 comments on commit 63a3c06

Please sign in to comment.