You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nbviewer/app.py
+74-5Lines changed: 74 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ def nrfoot():
77
77
78
78
classNBViewer(Application):
79
79
80
-
name=Unicode('nbviewer')
80
+
name=Unicode('NBViewer')
81
81
82
82
aliases=Dict({
83
83
'base-url' : 'NBViewer.base_url',
@@ -166,13 +166,34 @@ class NBViewer(Application):
166
166
url_handler=Unicode(default_value="nbviewer.providers.url.handlers.URLHandler", help="The Tornado handler to use for viewing notebooks accessed via URL").tag(config=True)
167
167
user_gists_handler=Unicode(default_value="nbviewer.providers.gist.handlers.UserGistsHandler", help="The Tornado handler to use for viewing directory containing all of a user's Gists").tag(config=True)
168
168
169
+
answer_yes=Bool(default_value=False, help="Answer yes to any questions (e.g. confirm overwrite).").tag(config=True)
170
+
171
+
# base_url specified by the user
172
+
base_url=Unicode(default_value="/", help='URL base for the server').tag(config=True)
173
+
174
+
binder_base_url=Unicode(default_value="https://mybinder.org/v2", help="URL base for binder notebook execution service.").tag(config=True)
rate_limit=Int(default_value=60, help="Number of requests to allow in rate_limit_interval before limiting. Only requests that trigger a new render are counted.").tag(config=True)
251
+
252
+
rate_limit_interval=Int(default_value=600, help="Interval (in seconds) for rate limiting.").tag(config=True)
253
+
254
+
render_timeout=Int(default_value=15, help="Time to wait for a render to complete before showing the 'Working...' page.").tag(config=True)
255
+
256
+
sslcert=Unicode(help="Path to ssl .crt file.").tag(config=True)
257
+
258
+
sslkey=Unicode(help="Path to ssl .key file.").tag(config=True)
200
259
201
260
static_path=Unicode(default_value=os.environ.get("NBVIEWER_STATIC_PATH", ""), help="Custom path for loading additional static files.").tag(config=True)
0 commit comments