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: docs/user/features.rst
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,31 +5,32 @@ Code Snippet Explorer
5
5
---------------------
6
6
7
7
On the left side bar of the JupyterLab, you can click the snippet icon (</>) to open/close the code snippet explorer that contains all the saved snippets as below.
8
-
You can scroll/resize code snippet explorer, order the snippets with drag and drop, and manage and search the snippets efficiently.
8
+
You can scroll/resize code snippet explorer, order the snippets with drag and drop, and manage and search the snippets.
1. Highlight lines of code and right click (or use keyboard shortcut (cmd-shift-A or ctrl-shift-A)) to save the code as a snippet. Or, you can select cell(s) and right click (or use keyboard shortcut (cmd-shift-A or ctrl-shift-A)) to save content as a snippet. Then, you will see the "Save As Code Snippet" option in JupyterLab context menu as below:
18
19
19
20
.. image:: ../../Design/right_click.png
20
21
:align:center
21
22
22
-
Then, clicking the option will open the dialog as below where you can input name, description, language, tags, and codes of a snippet.
23
+
Clicking the option will open the dialog as below where you can input name, description, language, and tags of the snippet.
2. More easily, just drag notebook cell(s) to the code snippet explorer on the left to create a new snippet. It will also open the dialog as above for your inputs.
28
29
29
-
.. image:: ../../Design/create_from_scratch.png
30
-
:align:center
30
+
3. Hit the plus button next to the search bar (refer to `Search of Code Snippets`_) to create a new snippet from scratch.
31
31
32
-
3. Hit the plus button next to the search bar (refer to `Search of Code Snippets`_) to create a new snippet if you want to create a snippet not from the notebook cell.
0 commit comments