Show More
@@ -95,6 +95,13 b' try:' | |||
|
95 | 95 | except ImportError: |
|
96 | 96 | sphinxify = None |
|
97 | 97 | |
|
98 | ||
|
99 | class ProvisionalWarning(DeprecationWarning): | |
|
100 | """ | |
|
101 | Warning class for unstable features | |
|
102 | """ | |
|
103 | pass | |
|
104 | ||
|
98 | 105 | #----------------------------------------------------------------------------- |
|
99 | 106 | # Globals |
|
100 | 107 | #----------------------------------------------------------------------------- |
@@ -212,6 +219,7 b' class InteractiveShell(SingletonConfigurable):' | |||
|
212 | 219 | Autoindent IPython code entered interactively. |
|
213 | 220 | """ |
|
214 | 221 | ).tag(config=True) |
|
222 | ||
|
215 | 223 | automagic = Bool(True, help= |
|
216 | 224 | """ |
|
217 | 225 | Enable magic commands to be called without the leading %. |
@@ -277,16 +285,29 b' class InteractiveShell(SingletonConfigurable):' | |||
|
277 | 285 | display_formatter = Instance(DisplayFormatter, allow_none=True) |
|
278 | 286 | displayhook_class = Type(DisplayHook) |
|
279 | 287 | display_pub_class = Type(DisplayPublisher) |
|
288 | ||
|
280 | 289 | sphinxify_docstring = Bool(False, help= |
|
281 | 290 | """ |
|
282 | 291 | Enables rich html representation of docstrings. (This requires the |
|
283 | 292 | docrepr module). |
|
284 | 293 | """).tag(config=True) |
|
294 | ||
|
295 | @observe("sphinxify_docstring") | |
|
296 | def _sphinxify_docstring_changed(self, change): | |
|
297 | if change['new']: | |
|
298 | warn("`sphinxify_docstring` is provisional since IPython 5.0 and might change in future versions." , ProvisionalWarning) | |
|
299 | ||
|
285 | 300 | enable_html_pager = Bool(False, help= |
|
286 | 301 | """ |
|
287 | 302 | (Provisional API) enables html representation in mime bundles sent |
|
288 | 303 | to pagers. |
|
289 | 304 | """).tag(config=True) |
|
305 | ||
|
306 | @observe("enable_html_pager") | |
|
307 | def _enable_html_pager_changed(self, change): | |
|
308 | if change['new']: | |
|
309 | warn("`enable_html_pager` is provisional since IPython 5.0 and might change in future versions.", ProvisionalWarning) | |
|
310 | ||
|
290 | 311 | data_pub_class = None |
|
291 | 312 | |
|
292 | 313 | exit_now = Bool(False) |
General Comments 0
You need to be logged in to leave comments.
Login now