File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33![ Github Actions Status] ( https://github.com/QuantStack/jupyterlab-snippets/workflows/Build/badge.svg )
44
5- Code Snippets Extension for JupyterLab.
5+ Snippets Extension for JupyterLab.
66
77This extension is composed of a Python package named ` jupyterlab-snippets `
88for the server extension and a NPM package named ` jupyterlab-snippets `
@@ -22,11 +22,11 @@ jupyter lab build
2222
2323## Usage
2424
25- Add snippets in ` [jupyter_data_dir]/code_snippets ` (see: https://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html#id2 )
25+ Add snippets in ` [jupyter_data_dir]/snippets ` (see: https://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html#id2 )
2626
27- In JupyterLab, use the "Code Snippets" menu to select the snippet:
27+ In JupyterLab, use the "Snippets" menu to select the snippet:
2828
29- <img width =" 398 " alt =" Schermafbeelding 2020-03-26 om 13 16 34 " src =" https://user-images.githubusercontent.com/46192475/77646139-40a21c00-6f64 -11ea-9073-fe2d1052928f .png " >
29+ <img width =" 570 " alt =" Schermafbeelding 2020-03-30 om 17 25 31 " src =" https://user-images.githubusercontent.com/46192475/77930697-8257fd00-72ab -11ea-8a77-36f45d6442d9 .png " >
3030
3131
3232## Troubleshoot
Original file line number Diff line number Diff line change 99
1010class SnippetsLoader :
1111 def __init__ (self ):
12- self .snippet_paths = jupyter_path ("code_snippets " )
12+ self .snippet_paths = jupyter_path ("snippets " )
1313
1414 def collect_snippets (self ):
1515 snippets = []
Original file line number Diff line number Diff line change 11{
22 "name" : " jupyterlab-snippets" ,
33 "version" : " 0.1.0" ,
4- "description" : " Code Snippets Extension for JupyterLab" ,
4+ "description" : " Snippets Extension for JupyterLab" ,
55 "keywords" : [
66 " jupyter" ,
77 " jupyterlab" ,
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ import {
2222import { listSnippets , Snippet , fetchSnippet } from "./snippets" ;
2323
2424/**
25- * The command IDs used by the code snippets plugin.
25+ * The command IDs used by the snippets plugin.
2626 */
2727namespace CommandIDs {
28- export const open = "code- snippets:open" ;
28+ export const open = "snippets:open" ;
2929}
3030
3131/**
@@ -130,7 +130,7 @@ const extension: JupyterFrontEndPlugin<void> = {
130130 if ( menu ) {
131131 const list = await listSnippets ( ) ;
132132 const snippetsMenu = createMenu ( commands , toTree ( list ) ) ;
133- snippetsMenu . title . label = 'Code Snippets' ;
133+ snippetsMenu . title . label = 'Snippets' ;
134134 menu . addMenu ( snippetsMenu ) ;
135135 }
136136 }
You can’t perform that action at this time.
0 commit comments