-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from mwouts/v0.4.0
V0.4.0
- Loading branch information
Showing
11 changed files
with
169 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,37 @@ | ||
## First | ||
## markdown | ||
## cell | ||
# # Specifications for Jupyter notebooks as python scripts | ||
|
||
## # Part A | ||
# ## Markdown (and raw) cells | ||
|
||
## Some python code below | ||
# Markdown cells are escaped with a single quote. Two consecutive | ||
# cells are separated with a blank line. Raw cells are not | ||
# distinguished from markdown. | ||
|
||
# Pandas | ||
import pandas as pd | ||
# ## Code cells | ||
|
||
df = pd.Series({'A': 1, 'B': 2}) | ||
# Code cells are separated by one blank line from markdown cells. | ||
# If a code cells follows a comment, then that comment belong to the | ||
# code cell. | ||
|
||
## # Part B | ||
# For instance, this is a code cell that starts with a | ||
# code comment, split on multiple lines | ||
1 + 2 | ||
|
||
## Now we have a python cell | ||
## with metadata in json format, escaped with #+ | ||
# Code cells are terminated with either | ||
# - end of file | ||
# - two blank lines if followed by an other code cell | ||
# - one blank line if followed by a markdown cell | ||
|
||
# Code cells can have blank lines, but no two consecutive blank lines (that's | ||
# a cell break!). Below we have a cell with multiple instructions: | ||
|
||
a = 3 | ||
|
||
a + 1 | ||
|
||
# ## Metadata in code cells | ||
|
||
# In case a code cell has metadata information, it | ||
# is represented in json format, escaped with '#+' or '# +' | ||
|
||
# + {"scrolled": true} | ||
df.plot() | ||
a + 2 |
Oops, something went wrong.