Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions bug-string-reviewnb.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
" select name\n",
" from table\n",
" where app_id = 'test_id'\n",
" and event_time > 20200310\n",
" group by 1\n",
" \n",
"101\n"
]
}
],
"source": [
"import datetime\n",
"app_id = 'test_id'\n",
"sql = \"\"\"\n",
" select name\n",
" from table\n",
" where app_id = {app_id}\n",
" and event_time > {datetime.datetime.now().strftime('%Y%m%d')}\n",
" group by 1\n",
" \"\"\"\n",
" \n",
"print(sql)\n",
"\n",
"a = 100\n",
"a = a + 1\n",
"print(a)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# new code cell"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
15 changes: 13 additions & 2 deletions notebooks/01.03-Magic-Commands.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
"*The text is released under the [CC-BY-NC-ND license](https://creativecommons.org/licenses/by-nc-nd/3.0/us/legalcode), and code is released under the [MIT license](https://opensource.org/licenses/MIT). If you find this content useful, please consider supporting the work by [buying the book](http://shop.oreilly.com/product/0636920034919.do)!*"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"New list items\n",
"\n",
"- The previous two sections showed how and explore Python efficiently and interactively. Here we'll begin discussing some\n",
"- versionChanged-The previous two sections added showed how IPython lets you use and explore Python efficiently and interactively. Here we'll begin discussing some\n",
"- newWord3The previous two sections showed how IModified lets you use and explore Python efficiently and interactively. Here we'll begin discussing some"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -225,9 +236,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}
6 changes: 3 additions & 3 deletions notebooks/02.08-Sorting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Up to this point we have been concerned mainly with tools to access and operate on array data with NumPy.\n",
"--Change--Up to this point we have been concerned mainly with tools to access and operate on array data with NumPy.\n",
"This section covers algorithms related to sorting values in NumPy arrays.\n",
"These algorithms are a favorite topic in introductory computer science courses: if you've ever taken one, you probably have had dreams (or, depending on your temperament, nightmares) about *insertion sorts*, *selection sorts*, *merge sorts*, *quick sorts*, *bubble sorts*, and many, many more.\n",
"All are means of accomplishing a similar task: sorting the values in a list or array.\n",
Expand Down Expand Up @@ -729,9 +729,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
945 changes: 945 additions & 0 deletions notebooks/Plotly-v2.ipynb

Large diffs are not rendered by default.

1,006 changes: 1,006 additions & 0 deletions notebooks/Plotly-v4.ipynb

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions v2-bug-string-reviewnb.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
" select name\n",
" from table\n",
" where app_id = 'test_id'\n",
" and event_time > 20200310\n",
" group by 1\n",
" \n",
"101\n"
]
}
],
"source": [
"import datetime\n",
"app_id = 'test_id'\n",
"sql = f\"\"\"\n",
" select name\n",
" from table\n",
" where app_id = '{app_id}'\n",
" and event_time > {datetime.datetime.now().strftime('%Y%m%d')}\n",
" group by 1\n",
" \"\"\"\n",
" \n",
"print(sql)\n",
"a = 100\n",
"a = a + 1\n",
"print(a)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
72 changes: 72 additions & 0 deletions v3-bug-string-reviewnb.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
" select name\n",
" from table\n",
" where app_id = 'test_id'\n",
" and event_time > 20200310\n",
" group by 1\n",
" \n",
"101\n"
]
}
],
"source": [
"import datetime\n",
"app_id = 'test_id'\n",
"sql = \"\"\"\n",
" select name\n",
" from table\n",
" where app_id = '{app_id}'\n",
" and event_time > {datetime.datetime.now().strftime('%Y%m%d')}\n",
" group by 1\n",
" \"\"\"\n",
" \n",
"print(sql)\n",
"a = 100\n",
"a = a + 1\n",
"print(a)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"u'abc' + foo\n",
"f'abc' + foo"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 1
}