Skip to content

Commit 6707429

Browse files
Split out unnecessary comments in code
1 parent 2058790 commit 6707429

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

book/notebook_6_numpy/PythonNotebook6_loading_data.ipynb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,22 @@
193193
"X,Y = np.meshgrid(x,y)\n",
194194
"\n",
195195
"# a function to plot\n",
196-
"Z = X**2 + Y**2\n",
197-
"# Z has the same shape as X and Y\n",
198-
"# each element of Z is computed from the corresponding elements of X and Y\n",
199-
"\n",
196+
"Z = X**2 + Y**2"
197+
]
198+
},
199+
{
200+
"cell_type": "markdown",
201+
"metadata": {},
202+
"source": [
203+
"`Z` has the same shape as `X` and `Y`, and each element of `Z` is computed from the corresponding elements of `X` and `Y`."
204+
]
205+
},
206+
{
207+
"cell_type": "code",
208+
"execution_count": null,
209+
"metadata": {},
210+
"outputs": [],
211+
"source": [
200212
"ax = plt.axes(projection='3d')\n",
201213
"\n",
202214
"ax.plot_surface(X,Y,Z)\n",

0 commit comments

Comments
 (0)