-
Notifications
You must be signed in to change notification settings - Fork 42
/
template_script.py
43 lines (33 loc) · 1.48 KB
/
template_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
script_name.py
===============
Description of the example, if any.
Concepts illustrated:
- Concept 1
- Concept 2
- ...
See following URLs to see the reproduced NCL plot & script <If this example originates from an NCL example>:
- Original NCL script: <Provide URL>
- Original NCL plot: <Provide URL>
"""
###############################################################################
# A line beginning with at least 20 '#' characters as above line indicates that
# all of the following comment lines should be interpreted as a markdown cell
# when the script is auto-converted to a Jupyter Notebook.
# <This first cell may be dedicated to a task such as following>
# Import packages:
print("This is a code cell")
###############################################################################
# <Another text/markdown cell. This cell may be dedicated to a task such as following>
# Read in data:
print("More code")
###############################################################################
# <Another text/markdown cell. This cell may be dedicated to a task such as following>
# Plot:
print("Plotting code")
# This line will be a comment inside a code cell, *NOT* a markdown cell
print("Even more code")
###############################################################################
# Note the inline comment in the previous code cell. This was not converted to
# its own markdown cell because it was not contiguously preceeded with a
# comment line beginning with 20+ '#' characters.