Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option configuration from the Jupyter notebook's menus #22888

Open
nthiery opened this issue Apr 27, 2017 · 7 comments
Open

Option configuration from the Jupyter notebook's menus #22888

nthiery opened this issue Apr 27, 2017 · 7 comments

Comments

@nthiery
Copy link
Contributor

nthiery commented Apr 27, 2017

Configuration options for the Sage interpreter are hard to discover by users, even when some of them would be very useful even to newcomers. This ticket configures Sage's Jupyter kernel to add menu items for setting common options.

Examples (please add more!):

  • typeset: whether to typeset outputs with latex+mathjax %display latex
    (default: False),
  • preparse: whether to activate Sage's preparsing
    (default: True),
  • automatic variables: whether to automatically create undefined variables ???
    (default: False),
  • greedy completion: whether to do autocompletion on foo().ba<tab> (%config IPCompleter.greedy = True)
    (default: False),
  • implicit multiplication: implicit_multiplication, eg recognize 2x as 2 * x
    (default: False).

This can be implemented in Sage's Jupyter kernel, by adding some appropriate javascript in a file kernel.js next to kernel.json.

Status: @sagetrac-minrk has implemented a minimal proof of concept that will be posted here soon.

In the longer run, one could add in the same way:

  • a toolbar similar to that of SageMathCloud's notebooks, giving access to common commands,
  • switching to "append only mode" where cells can only be started at the end,
  • activation of notebook plugins?

Depends on #21959

CC: @sagetrac-minrk @videlec @defeo @slel

Component: notebook

Author: Min Ragan-Kelley, ...

Issue created by migration from https://trac.sagemath.org/ticket/22888

@nthiery nthiery added this to the sage-8.0 milestone Apr 27, 2017
@nthiery

This comment has been minimized.

@slel

This comment has been minimized.

@slel
Copy link
Member

slel commented Apr 27, 2017

comment:4

Edit ticket description to add implicit_multiplication.

@seblabbe
Copy link
Contributor

comment:5

Notice the existence of #21959 which needs review proposed by Konstantin Kliakhandler during Sage Days 79 in Jerusalem.

@nthiery
Copy link
Contributor Author

nthiery commented Apr 28, 2017

Dependencies: #21959

@nthiery
Copy link
Contributor Author

nthiery commented Apr 28, 2017

comment:7

Thanks for the ref. That's one less thing to do :-)

@nthiery
Copy link
Contributor Author

nthiery commented Apr 28, 2017

Changed dependencies from #21959 to 21959

@mkoeppe mkoeppe removed this from the sage-8.0 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants