Skip to content

Commit 940a473

Browse files
authored
Merge pull request #420 from Zsailer/docs-file_to_run
Add file_to_run to server extension docs
2 parents 0e65f26 + cd43a14 commit 940a473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/developers/extensions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ The basic structure of an ExtensionApp is shown below:
130130
name = "myextension"
131131
default_url = "/myextension"
132132
load_other_extensions = True
133+
file_url_prefix = "/render"
133134
134135
# --- ExtensionApp traits you can configure ---
135136
static_paths = [...]
@@ -167,8 +168,9 @@ Methods
167168
Properties
168169

169170
* ``name``: the name of the extension
170-
* ``default_url``: the default url for this extension—i.e. the landing page for this extension when launched from the CLI.
171+
* ``default_url``: the default URL for this extension—i.e. the landing page for this extension when launched from the CLI.
171172
* ``load_other_extensions``: a boolean enabling/disabling other extensions when launching this extension directly.
173+
* ``file_url_prefix``: the prefix URL added when opening a document directly from the command line. For example, classic Notebook uses ``/notebooks`` to open a document at http://localhost:8888/notebooks/path/to/notebook.ipynb.
172174

173175
``ExtensionApp`` request handlers
174176
---------------------------------

0 commit comments

Comments
 (0)