Skip to content

Commit b0c7feb

Browse files
authored
Merge pull request #519 from jwindgassen/command-callable
Allow ServerProcess.command to be a callable
2 parents 76a98c9 + fd6509f commit b0c7feb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter_server_proxy/config.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def _default_path_info(self):
7979
class ServerProcess(Configurable):
8080
name = Unicode(help="Name of the server").tag(config=True)
8181

82-
command = List(
83-
Unicode(),
82+
command = Union(
83+
[List(Unicode()), Callable()],
8484
help="""
8585
An optional list of strings that should be the full command to be executed.
8686
The optional template arguments ``{port}``, ``{unix_socket}`` and ``{base_url}``
@@ -195,8 +195,8 @@ def _default_launcher_entry(self):
195195
""",
196196
).tag(config=True)
197197

198-
request_headers_override = Dict(
199-
Unicode(),
198+
request_headers_override = Union(
199+
[Dict(Unicode()), Callable()],
200200
default_value={},
201201
help="""
202202
A dictionary of additional HTTP headers for the proxy request. As with

0 commit comments

Comments
 (0)