Opened 5 years ago

Last modified 5 years ago

#22888 new enhancement

Option configuration from the Jupyter notebook's menus

Reported by: nthiery Owned by:
Priority: major Milestone: sage-8.0
Component: notebook Keywords:
Cc: minrk, vdelecroix, defeo, slelievre Merged in:
Authors: Min Ragan-Kelley, ... Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: 21959 Stopgaps:

Status badges

Description (last modified by slelievre)

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: @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?

Change History (8)

comment:1 Changed 5 years ago by nthiery

  • Cc vdelecroix added

comment:2 Changed 5 years ago by defeo

  • Cc defeo added

comment:3 Changed 5 years ago by nthiery

  • Description modified (diff)

comment:4 Changed 5 years ago by slelievre

  • Cc slelievre added
  • Description modified (diff)

Edit ticket description to add implicit_multiplication.

comment:5 Changed 5 years ago by slabbe

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

comment:6 Changed 5 years ago by nthiery

  • Dependencies set to #21959

comment:7 Changed 5 years ago by nthiery

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

comment:8 Changed 5 years ago by nthiery

  • Dependencies changed from #21959 to 21959
Note: See TracTickets for help on using tickets.