Sha256: 3d1f8fc88c75109a525c99e5b865dcd1f10bd4846beeabe9fbf72ac503dc5db7
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
$([IPython.events]).on('notebook_loaded.Notebook', function(){ // add here logic that should be run once per **notebook load** IPython.notebook.metadata.language = 'ruby' ; }); $([IPython.events]).on('app_initialized.NotebookApp', function(){ // add here logic that shoudl be run once per **page load** $.getScript('/static/components/codemirror/mode/ruby/ruby.js'); IPython.CodeCell.options_default['cm_config']['mode'] = 'ruby'; IPython.CodeCell.options_default['cm_config']['indentUnit'] = 2; });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iruby-0.1.7 | lib/iruby/static/custom/custom.js |
iruby-0.1.6 | lib/iruby/static/custom/custom.js |
iruby-0.1.5 | lib/iruby/static/custom/custom.js |