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: src/jupyter_contrib_nbextensions/nbextensions/snippets/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ example snippet is included with this extension.
13
13
Adding new snippets
14
14
-------------------
15
15
16
-
Snippets are specified by adding a new JSON block to the list of existing snippets in `nbextensions/snippets/snippets.json`. For example, to add a new snippet that imports numpy, matplotlib, and a print statement, the JSON file should be modified from:
16
+
Snippets are specified by adding a new JSON block to the list of existing snippets in `$(jupyter --data-dir)/nbextensions/snippets/snippets.json`. For example, to add a new snippet that imports numpy, matplotlib, and a print statement, the JSON file should be modified from:
17
17
18
18
```json
19
19
{
@@ -23,8 +23,8 @@ Snippets are specified by adding a new JSON block to the list of existing snippe
23
23
"code" : [
24
24
"# This is an example snippet!",
25
25
"# To create your own, add a new snippet block to the",
26
-
"# snippets.json file in your jupyter nbextensions directory:",
27
-
"# /nbextensions/snippets/snippets.json",
26
+
"# snippets.json file in your jupyter data directory under nbextensions:",
0 commit comments