@@ -66,10 +66,10 @@ For example, with the following config:
66
66
67
67
``` python
68
68
c.ServerProxy.servers = {
69
- ' test-server' : {
70
- ' command' : [' python3' , ' -m ' , ' http.server' , ' {port} ' ],
71
- ' absolute_url' : False
72
- }
69
+ " test-server" : {
70
+ " command" : [" python3" , " -m " , " http.server" , " {port} " ],
71
+ " absolute_url" : False
72
+ }
73
73
}
74
74
```
75
75
@@ -162,10 +162,10 @@ For example, with the following config:
162
162
163
163
``` python
164
164
def _cmd_callback ():
165
- return [' some-command' ]
165
+ return [" some-command" ]
166
166
167
167
server_config = {
168
- ' command' : _cmd_callback
168
+ " command" : _cmd_callback
169
169
}
170
170
```
171
171
@@ -174,10 +174,10 @@ with:
174
174
175
175
``` python
176
176
def _cmd_callback (port ):
177
- return [' some-command' , ' --port=' + str (port)]
177
+ return [" some-command" , " --port=" + str (port)]
178
178
179
179
server_config = {
180
- ' command' : _cmd_callback
180
+ " command" : _cmd_callback
181
181
}
182
182
```
183
183
@@ -200,7 +200,7 @@ of the argument. For example, if your function is:
200
200
201
201
``` python
202
202
def _openrefine_cmd ():
203
- return [' openrefine' , ' -p ' , ' {port} ' ]
203
+ return [" openrefine" , " -p " , " {port} " ]
204
204
```
205
205
206
206
The ` {port} ` will be replaced with the appropriate port before
@@ -225,9 +225,9 @@ if we want tighter control over what process is spawned.
225
225
226
226
``` python
227
227
c.ServerProxy.servers = {
228
- ' openrefine' : {
229
- ' command' : [' refine' , ' -p ' , ' {port} ' ]
230
- }
228
+ " openrefine" : {
229
+ " command" : [" refine" , " -p " , " {port} " ]
230
+ }
231
231
}
232
232
```
233
233
@@ -252,9 +252,9 @@ above.
252
252
253
253
``` python
254
254
def setup_openrefine ():
255
- return {
256
- ' command' : [' refine' , ' -p ' , ' {port} ' ]
257
- }
255
+ return {
256
+ " command" : [" refine" , " -p " , " {port} " ]
257
+ }
258
258
```
259
259
260
260
A simple function that returns a Server Process configuration
@@ -267,16 +267,16 @@ above.
267
267
import setuptools
268
268
269
269
setuptools.setup(
270
- name = " jupyter-openrefine-server" ,
271
- # py_modules rather than packages, since we only have 1 file
272
- py_modules = [' openrefine' ],
273
- entry_points = {
274
- ' jupyter_serverproxy_servers' : [
275
- # name = packagename:function_name
276
- ' openrefine = openrefine:setup_openrefine' ,
277
- ]
278
- },
279
- install_requires = [' jupyter-server-proxy' ],
270
+ name = " jupyter-openrefine-server" ,
271
+ # py_modules rather than packages, since we only have 1 file
272
+ py_modules = [" openrefine" ],
273
+ entry_points = {
274
+ " jupyter_serverproxy_servers" : [
275
+ # name = packagename:function_name
276
+ " openrefine = openrefine:setup_openrefine" ,
277
+ ]
278
+ },
279
+ install_requires = [" jupyter-server-proxy" ],
280
280
)
281
281
```
282
282
0 commit comments