@@ -100,11 +100,49 @@ Try with the above links to check that only Extension 2 is responding (Extension
100
100
101
101
## Extension 11 extending Extension 1
102
102
103
- ` Extension 11 ` extends ` Extension 1 ` . It also implemnets additional flags and aliases.
103
+ ` Extension 11 ` extends ` Extension 1 ` .
104
104
105
- The ` --hello ` flag will log on startup ` Hello Simple11 - You have provided the --hello flag or defined a c.SimpleApp1.hello == True ` .
105
+ It brings a few more configs. Run ` jupyter simple-ext11 --generate-config && vi ~/.jupyter/jupyter_config.py ` .
106
106
107
- The ` --simple11-dir ` alias will set ` SimpleExt11.simple11_dir ` settings.
107
+ The generated configuration should contains the following.
108
+
109
+ ``` bash
110
+ ...
111
+ # Can be used to override templates from notebook.templates.
112
+ # c.ExtensionApp.template_paths = []
113
+
114
+ # ------------------------------------------------------------------------------
115
+ # SimpleApp1(ExtensionApp) configuration
116
+ # ------------------------------------------------------------------------------
117
+
118
+ # ------------------------------------------------------------------------------
119
+ # SimpleApp11(SimpleApp1) configuration
120
+ # ------------------------------------------------------------------------------
121
+
122
+ # # Say hello
123
+ # c.SimpleApp11.hello = False
124
+
125
+ # # Ignore Javascript
126
+ # c.SimpleApp11.ignore_js = False
127
+
128
+ # # Simple directory
129
+ # c.SimpleApp11.simple11_dir = ''
130
+
131
+ # ------------------------------------------------------------------------------
132
+ # ServerApp(JupyterApp) configuration
133
+ # ------------------------------------------------------------------------------
134
+
135
+ # # Set the Access-Control-Allow-Credentials: true header
136
+ # c.ServerApp.allow_credentials = False
137
+ ...
138
+ ```
139
+
140
+ The ` hello ` , ` ignoare_js ` and ` simple11_dir ` are traits defined on the SimpleApp11 class.
141
+
142
+ It also implements additional flags and aliases for these traits.
143
+
144
+ + The ` --hello ` flag will log on startup ` Hello Simple11 - You have provided the --hello flag or defined a c.SimpleApp1.hello == True ` .
145
+ + The ` --simple11-dir ` alias will set ` SimpleExt11.simple11_dir ` settings.
108
146
109
147
Stop any running server and then start the simple-ext11.
110
148
0 commit comments