How can I display line numbers in Jupyter notebook code cells by default?
6,443 views
Skip to first unread message
Keir Lockridge
unread,
Jul 16, 2016, 1:10:30 PM7/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-cloud
There is probably a global configuration file for the Jupyter notebook where this setting can be changed, but I'm not sure where it is.
In a code cell in the Jupyter notebook, line numbers may be turned on by typing ESC-L. This effect seems to be temporary (when I save the notebook and reload it, the line numbers disappear). I am wondering if there is some way to have the notebook display line numbers by default.
Thanks --
Keir
Harald Schilly
unread,
Jul 16, 2016, 1:26:01 PM7/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
use jupyter --config-dir to get the config dir, which should be
~/.jupyter in SMC and hence it's the file ~/.jupyter/custom/custom.js
where you have to put that startup code in.