Skip to content

Commit 5b2ab07

Browse files
committed
Linting notebooks using flake8-nb
1 parent 638d644 commit 5b2ab07

2 files changed

Lines changed: 689 additions & 192 deletions

File tree

notes/D1-Strings_Basic_Operations.ipynb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
"outputs": [],
6060
"source": [
6161
"str_2 = \"\"\"\n",
62-
"(CNN)AirAsia Flight QZ8501 climbed rapidly before it crashed, \n",
62+
"(CNN)AirAsia Flight QZ8501 climbed rapidly before it crashed,\n",
6363
"a top Indonesian official said Tuesday, according to The Jakarta Post.\n",
6464
"\n",
65-
"Then the plane stalled, Transportation Minister Ignasius Jonan said \n",
65+
"Then the plane stalled, Transportation Minister Ignasius Jonan said\n",
6666
"at a parliamentary hearing, according to the AFP and Reuters news agencies.\n",
6767
"\n",
68-
"\"The plane, during the last minutes, went up faster than normal \n",
69-
"speed ... after then, it stalled. That is according to the data \n",
68+
"\"The plane, during the last minutes, went up faster than normal\n",
69+
"speed ... after then, it stalled. That is according to the data\n",
7070
"from the radar,\" Jonan said, according to the news agencies.\n",
7171
"\"\"\"\n",
7272
"print(str_2)"
@@ -213,12 +213,12 @@
213213
"outputs": [],
214214
"source": [
215215
"news = \"\"\"\n",
216-
"Technology stocks are suffering one of their worst beatings in years, \n",
217-
"as investors reassess a sector that has been considered the growth \n",
218-
"engine of the global economy but now faces the prospect of greater \n",
219-
"regulatory scrutiny. The tech-heavy Nasdaq Composite Index \n",
220-
"fell 2.9% Tuesday. That selloff carried over to the broader market, \n",
221-
"where the S&P 500 index slumped 1.7%. The Dow Jones Industrial \n",
216+
"Technology stocks are suffering one of their worst beatings in years,\n",
217+
"as investors reassess a sector that has been considered the growth\n",
218+
"engine of the global economy but now faces the prospect of greater\n",
219+
"regulatory scrutiny. The tech-heavy Nasdaq Composite Index\n",
220+
"fell 2.9% Tuesday. That selloff carried over to the broader market,\n",
221+
"where the S&P 500 index slumped 1.7%. The Dow Jones Industrial\n",
222222
"Average fell 1.4%, giving back some of Monday’s 2.8% rebound.\n",
223223
"\"\"\""
224224
]
@@ -288,7 +288,8 @@
288288
"metadata": {},
289289
"outputs": [],
290290
"source": [
291-
"# If we want to keep the changed-case version, we need to store it in a variable\n",
291+
"# If we want to keep the changed-case version,\n",
292+
"# we need to store it in a variable\n",
292293
"l_news = news.lower()\n",
293294
"print(l_news)"
294295
]

0 commit comments

Comments
 (0)