You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nbs/index.ipynb
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,15 @@
2
2
"cells": [
3
3
{
4
4
"cell_type": "markdown",
5
+
"id": "a6ece3e1",
5
6
"metadata": {},
6
7
"source": [
7
8
"[](https://github.com/fastai/execnb/actions/workflows/test.yaml) [](https://github.com/fastai/execnb/actions/workflows/deploy.yaml)"
8
9
]
9
10
},
10
11
{
11
12
"cell_type": "markdown",
13
+
"id": "cebbd70a",
12
14
"metadata": {},
13
15
"source": [
14
16
"# execnb\n",
@@ -18,13 +20,15 @@
18
20
},
19
21
{
20
22
"cell_type": "markdown",
23
+
"id": "19fba324",
21
24
"metadata": {},
22
25
"source": [
23
26
"## Install"
24
27
]
25
28
},
26
29
{
27
30
"cell_type": "markdown",
31
+
"id": "9235036f",
28
32
"metadata": {},
29
33
"source": [
30
34
"Either:\n",
@@ -40,13 +44,15 @@
40
44
},
41
45
{
42
46
"cell_type": "markdown",
47
+
"id": "ba2d91de",
43
48
"metadata": {},
44
49
"source": [
45
50
"## How to use"
46
51
]
47
52
},
48
53
{
49
54
"cell_type": "markdown",
55
+
"id": "323dd8ea",
50
56
"metadata": {},
51
57
"source": [
52
58
"Use `CaptureShell` to run Jupyter code and capture notebook outputs, without running a Jupyter server (or even having it installed):"
@@ -55,6 +61,7 @@
55
61
{
56
62
"cell_type": "code",
57
63
"execution_count": null,
64
+
"id": "55f62b7c",
58
65
"metadata": {},
59
66
"outputs": [],
60
67
"source": [
@@ -66,6 +73,7 @@
66
73
{
67
74
"cell_type": "code",
68
75
"execution_count": null,
76
+
"id": "481c4034",
69
77
"metadata": {},
70
78
"outputs": [
71
79
{
@@ -89,6 +97,7 @@
89
97
},
90
98
{
91
99
"cell_type": "markdown",
100
+
"id": "125143bc",
92
101
"metadata": {},
93
102
"source": [
94
103
"To execute a notebook and save it with outputs filled in, use `CaptureShell.execute`:"
@@ -97,6 +106,7 @@
97
106
{
98
107
"cell_type": "code",
99
108
"execution_count": null,
109
+
"id": "457df56e",
100
110
"metadata": {},
101
111
"outputs": [
102
112
{
@@ -116,6 +126,7 @@
116
126
},
117
127
{
118
128
"cell_type": "markdown",
129
+
"id": "d787e3a7",
119
130
"metadata": {},
120
131
"source": [
121
132
"You can also execute notebooks from the command line with `exec_nb`:"
0 commit comments