iruby 0.1.13 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +13 -0
- data/CHANGES +9 -0
- data/CONTRIBUTORS +7 -1
- data/Gemfile +1 -4
- data/IRuby-Example.ipynb +3826 -3240
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.rdoc +45 -0
- data/Rakefile +2 -0
- data/bin/iruby +0 -1
- data/examples/display.ipynb +116 -106
- data/examples/stdout.ipynb +91 -93
- data/examples/table.ipynb +307 -282
- data/iruby.gemspec +12 -9
- data/lib/iruby.rb +2 -1
- data/lib/iruby/backend.rb +5 -5
- data/lib/iruby/comm.rb +60 -0
- data/lib/iruby/command.rb +68 -53
- data/lib/iruby/display.rb +4 -10
- data/lib/iruby/formatter.rb +11 -13
- data/lib/iruby/kernel.rb +69 -57
- data/lib/iruby/logger.rb +17 -0
- data/lib/iruby/ostream.rb +11 -9
- data/lib/iruby/session.rb +21 -24
- data/lib/iruby/utils.rb +2 -2
- data/lib/iruby/version.rb +1 -1
- data/{lib/iruby/static/base/images → logo}/favicon.ico +0 -0
- data/{lib/iruby/static/base/images/ipynblogo.png → logo/iruby.png} +0 -0
- data/{lib/iruby/static/base/images/src/ipynblogo.svg → logo/iruby.svg} +0 -0
- data/{lib/iruby/static/base/images/src → logo}/ruby.svg +0 -0
- data/test/integration_test.rb +41 -0
- data/test/iruby/multi_logger_test.rb +15 -0
- data/test/test_helper.rb +5 -0
- metadata +51 -35
- data/README.md +0 -24
- data/lib/iruby/static/custom/custom.css +0 -40
- data/lib/iruby/static/custom/custom.js +0 -15
@@ -1,40 +0,0 @@
|
|
1
|
-
/* Placeholder for custom CSS */
|
2
|
-
/*color: #800000;*/
|
3
|
-
/*color: #c61a1a;*/
|
4
|
-
/*color: #e85353;*/
|
5
|
-
|
6
|
-
a {
|
7
|
-
color: #800000;
|
8
|
-
}
|
9
|
-
|
10
|
-
a:hover {
|
11
|
-
color: #000;
|
12
|
-
}
|
13
|
-
|
14
|
-
a tt {
|
15
|
-
color: #800000;
|
16
|
-
}
|
17
|
-
|
18
|
-
a tt:hover {
|
19
|
-
color: #000;
|
20
|
-
}
|
21
|
-
|
22
|
-
div.related ul li a {
|
23
|
-
color: #800000;
|
24
|
-
}
|
25
|
-
|
26
|
-
div.related ul li a:hover {
|
27
|
-
color: #000;
|
28
|
-
}
|
29
|
-
|
30
|
-
h1 {
|
31
|
-
color: #800000;
|
32
|
-
}
|
33
|
-
|
34
|
-
div.footer a {
|
35
|
-
color: #800000;
|
36
|
-
}
|
37
|
-
|
38
|
-
div.footer a:hover {
|
39
|
-
color: #000;
|
40
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
$([IPython.events]).on('notebook_loaded.Notebook', function(){
|
2
|
-
// add here logic that should be run once per **notebook load**
|
3
|
-
IPython.notebook.metadata.language = 'ruby' ;
|
4
|
-
});
|
5
|
-
|
6
|
-
$([IPython.events]).on('app_initialized.NotebookApp', function(){
|
7
|
-
// add here logic that shoudl be run once per **page load**
|
8
|
-
CodeMirror.requireMode('ruby', function(){
|
9
|
-
console.log('Ruby mode should now be available in codemirror.');
|
10
|
-
})
|
11
|
-
IPython.CodeCell.options_default['cm_config']['mode'] = 'ruby';
|
12
|
-
IPython.CodeCell.options_default['cm_config']['indentUnit'] = 2;
|
13
|
-
});
|
14
|
-
|
15
|
-
document.title = document.title.replace('IPython', 'IRuby');
|