Sha256: 299d6e5dfb5ef0e52a5bfeeba20c100b289f7d5086a1849fa8ed30ba32e5f344

Contents?: true

Size: 585 Bytes

Versions: 2

Compression:

Stored size: 585 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**
    CodeMirror.requireMode('ruby', function(){
         console.log('Ruby mode should now be available in codemirror.');
    })
    IPython.CodeCell.options_default['cm_config']['mode'] = 'ruby';
    IPython.CodeCell.options_default['cm_config']['indentUnit'] = 2;
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iruby-0.1.12 lib/iruby/static/custom/custom.js
iruby-0.1.11 lib/iruby/static/custom/custom.js