Changes between Version 16 and Version 17 of Ticket #20690


Ignore:
Timestamp:
06/27/16 16:17:18 (3 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20690

    • Property Reviewers changed from to Vincent Delecroix
  • Ticket #20690 – Description

    v16 v17  
    2626      server configuration to Thebe (not needed in fact)
    2727
    28 - Preparse or customize/configure Thebe to support Sage's doctest syntax:
     28- [/] Preparse or customize/configure Thebe to support Sage's doctest syntax:
    2929  - [ ] Strip out the "sage: " prompts and "....:" and "...  " continuation prompts
    3030  - [X] Strip out the outputs
     
    3232  - [X] Support doctests with several commands by spliting into several cells
    3333
    34 - Check what's the right way for including thebe.js in the Sage
     34- [X] Check what's the right way for including thebe.js in the Sage
    3535  sources. Should we have a spkg? (to be discussed at Sage Days 74
    3636  with Volker).
    3737
    38 Steps for later tickets:
    39 
    40 - [  ] Configure Sphinx to add a small header to our html page with Thebe configuration: use the Jupyter instance serving the page. We currently use `window.location.origin`; is this the right thing?
    41 
    42 - [ ] Currently it takes 10s for 100 prompts while some sage files
    43       contain up to 1000 prompts. Profile Thebe and optimize it or use
    44       a separate thread to properly support large files.
    45 
    46 - [ ] Expand the activate button with a menu or other widgets for user
    47       customization of the Jupyter server. This typically would
    48       let the user choose between:
    49       - tmpnb (will only be useful for Sage when tmpnb will include a
    50         Sage kernel)
    51       - A local Jupyter server
    52       - Whichever Jupyter server the browser is currently connected to?
    53       - a user specified server
    54 
    55 - [ ] Check whether Jupyter could be configured to dynamically
    56       negotiate incoming connections that don't fall within the
    57       `-NotebookApp.allow_origin pattern`, by opening a user dialog such
    58       as "Page xxx requests starting a new kernel on this server; do
    59       you accept? yes/no/always for this site"
    60 
    61 - [ ] Add support in Thebe for customizable (continuation) prompts, with
    62       striping and splitting as above, and automatic setting of the kernel.
    63       The customization option could look like:
    64 
    65       {{{
    66          prompts = {
    67             "sage: ": {continuations=["....:", "...  "], kernel="sagemath"},
    68             ">>>> ": {continuation="...  ", kernel="python"}
    69          }
    70       }}}
    71 
    72 - [ ] Contribute support for Thebe upstream in Sphinx, with:
    73 
    74       - [ ] Explicit markup to specify which code blocks are editable
    75             and with which kernel, or setup kernel auto-detection from
    76             the prompt.
    77 
    78       - [ ] The possibility for setting a default value for the above
    79 
    80 - [ ] Refactor the Sage sphinx configuration to use the above
    81 
    82 - [ ] Add support in Thebe for basic export to Jupyter notebooks. A
    83       quality loss (in particular in terms of the hierarchical
    84       structure) is acceptable.
     38following ticket for possible improvement: #20893