Update notebooks to latest nbformat

This commit is contained in:
Aurélien Geron
2020-04-06 19:13:12 +12:00
parent d507ec815a
commit 2f7ab70295
22 changed files with 112 additions and 194 deletions

View File

@@ -152,7 +152,10 @@
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": true
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"outputs": [],
"source": [
@@ -190,9 +193,7 @@
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"def plot_vector2d(vector2d, origin=[0, 0], **options):\n",
@@ -232,9 +233,7 @@
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"a = np.array([1, 2, 8])\n",
@@ -1671,9 +1670,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
},
"metadata": {},
"source": [
"## Converting 1D arrays to 2D arrays in NumPy\n",
"As we mentionned earlier, in NumPy (as opposed to Matlab, for example), 1D really means 1D: there is no such thing as a vertical 1D-array or a horizontal 1D-array. So you should not be surprised to see that transposing a 1D array does not do anything:"
@@ -2001,7 +1998,10 @@
"cell_type": "code",
"execution_count": 90,
"metadata": {
"collapsed": true
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"outputs": [],
"source": [
@@ -2739,7 +2739,10 @@
"cell_type": "code",
"execution_count": 122,
"metadata": {
"collapsed": true
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"outputs": [],
"source": [
@@ -3039,9 +3042,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": []
}
@@ -3062,7 +3063,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.7.6"
},
"toc": {
"toc_cell": false,
@@ -3072,5 +3073,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}