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. |
| 38 | following ticket for possible improvement: #20893 |