Skip to content

Commit 486d82e

Browse files
committed
fix multi-line code in UVES tutorial - fixes #448
1 parent 0292080 commit 486d82e

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

tutorials/notebooks/UVES/UVES.ipynb

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,18 @@
232232
"the current directory, then this file can be imported into a python session in\n",
233233
"order to use the function `func` with the following command:\n",
234234
"\n",
235-
"```import spectra_utils\n",
236-
"a = spectra_utils.func(param1, param2, ...)```\n",
235+
"```\n",
236+
"import spectra_utils\n",
237+
"a = spectra_utils.func(param1, param2, ...)\n",
238+
"```\n",
237239
"\n",
238240
"Alternatively, you can import just one (or a few) of many different functions\n",
239241
"that are defined in your file ``spectra_utils.py``:\n",
240242
"\n",
241-
"```from spectra_utils import func\n",
242-
"a = func(param1, param2, ...)```\n",
243+
"```\n",
244+
"from spectra_utils import func\n",
245+
"a = func(param1, param2, ...)\n",
246+
"```\n",
243247
"\n",
244248
"You'll recognize that python does not make a difference between modules that come\n",
245249
"with python (e.g. `glob`), external modules (e.g. `numpy` or `astropy`) and modules\n",
@@ -1336,7 +1340,20 @@
13361340
"name": "python",
13371341
"nbconvert_exporter": "python",
13381342
"pygments_lexer": "ipython3",
1339-
"version": "3.6.5"
1343+
"version": "3.8.3"
1344+
},
1345+
"toc": {
1346+
"base_numbering": 1,
1347+
"nav_menu": {},
1348+
"number_sections": true,
1349+
"sideBar": true,
1350+
"skip_h1_title": false,
1351+
"title_cell": "Table of Contents",
1352+
"title_sidebar": "Contents",
1353+
"toc_cell": false,
1354+
"toc_position": {},
1355+
"toc_section_display": true,
1356+
"toc_window_display": false
13401357
}
13411358
},
13421359
"nbformat": 4,

0 commit comments

Comments
 (0)