|
232 | 232 | "the current directory, then this file can be imported into a python session in\n", |
233 | 233 | "order to use the function `func` with the following command:\n", |
234 | 234 | "\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", |
237 | 239 | "\n", |
238 | 240 | "Alternatively, you can import just one (or a few) of many different functions\n", |
239 | 241 | "that are defined in your file ``spectra_utils.py``:\n", |
240 | 242 | "\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", |
243 | 247 | "\n", |
244 | 248 | "You'll recognize that python does not make a difference between modules that come\n", |
245 | 249 | "with python (e.g. `glob`), external modules (e.g. `numpy` or `astropy`) and modules\n", |
|
1336 | 1340 | "name": "python", |
1337 | 1341 | "nbconvert_exporter": "python", |
1338 | 1342 | "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 |
1340 | 1357 | } |
1341 | 1358 | }, |
1342 | 1359 | "nbformat": 4, |
|
0 commit comments