iruby 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGES +4 -0
- data/Gemfile +0 -1
- data/README.rdoc +4 -4
- data/bin/iruby +1 -1
- data/lib/iruby/command.rb +11 -6
- data/lib/iruby/logo/logo-32x32.png +0 -0
- data/lib/iruby/logo/logo-64x64.png +0 -0
- data/lib/iruby/version.rb +1 -1
- data/logo/logo-32x32.png +0 -0
- data/logo/logo-64x64.png +0 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff59d2e7e7ce93a64c171bd569905ee8b2814e84
|
4
|
+
data.tar.gz: 519c13474b7a079933cb6210a213f05f6b9952dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e8344b7b691f5d54f4c020b2f7df8d4f55346a81a70c188034ac6ddffed50d980d646166e6a1e991163569f0b823f2a65c4d241d034944788d0db453b5d39ac
|
7
|
+
data.tar.gz: 05eaf4106a476acca9e8b29320f2f56062f7f99a1b89c1f91fc540a8286d3e76c611806e23e47b6ff2b525ba33a4627e172b26f1c89d9562861f9cd0c66d5cd8
|
data/.travis.yml
CHANGED
data/CHANGES
CHANGED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
<b>The current master branch and gem version >= 0.2 are compatible with IPython3. If you require IPython2 support, please install an older gem version < 0.2 or use the branch ipython2</b>
|
1
|
+
<b>The current master branch and gem version >= 0.2 are compatible with IPython3/Jupyter. If you require IPython2 support, please install an older gem version < 0.2 or use the branch ipython2</b>
|
2
2
|
|
3
3
|
= IRuby
|
4
4
|
|
5
|
-
This is a Ruby kernel for IPython and is part of SciRuby[http://sciruby.com/].
|
5
|
+
This is a Ruby kernel for IPython/Jupyter and is part of SciRuby[http://sciruby.com/].
|
6
6
|
|
7
7
|
link:screenshot.png
|
8
8
|
|
9
9
|
=== Quick start
|
10
10
|
|
11
|
-
At first install IPython. I recommend an installation using virtualenv.
|
11
|
+
At first install IPython/Jupyter. I recommend an installation using virtualenv.
|
12
12
|
|
13
13
|
apt-get install python3-dev virtualenv libzmq3-dev
|
14
14
|
virtualenv -p python3 venv
|
@@ -28,7 +28,7 @@ Take a look at the Example[http://nbviewer.ipython.org/urls/raw.github.com/SciRu
|
|
28
28
|
|
29
29
|
=== Required dependencies
|
30
30
|
|
31
|
-
* IPython >= 3.0.0
|
31
|
+
* IPython/Jupyter >= 3.0.0
|
32
32
|
* libzmq >= 3.2
|
33
33
|
* Ruby >= 2.0.0
|
34
34
|
|
data/bin/iruby
CHANGED
data/lib/iruby/command.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module IRuby
|
2
4
|
class Command
|
3
5
|
def initialize(args)
|
@@ -8,7 +10,8 @@ module IRuby
|
|
8
10
|
ipython_dir = $1 if arg =~ /\A--ipython-dir=(.*)\Z/
|
9
11
|
end
|
10
12
|
ipython_dir = File.expand_path(ipython_dir)
|
11
|
-
@
|
13
|
+
@kernel_dir = File.join(ipython_dir, 'kernels', 'ruby')
|
14
|
+
@kernel_file = File.join(@kernel_dir, 'kernel.json')
|
12
15
|
end
|
13
16
|
|
14
17
|
def run
|
@@ -38,8 +41,8 @@ module IRuby
|
|
38
41
|
def print_help
|
39
42
|
puts %{
|
40
43
|
Usage:
|
41
|
-
iruby register Register IRuby kernel
|
42
|
-
iruby unregister
|
44
|
+
iruby register Register IRuby kernel in #{@kernel_file}.
|
45
|
+
iruby unregister Unregister IRuby kernel.
|
43
46
|
iruby console Launch the IRuby terminal-based console.
|
44
47
|
iruby notebook Launch the IRuby HTML notebook server.
|
45
48
|
... Same as IPython.
|
@@ -97,18 +100,20 @@ Try `ipython help` for more information.
|
|
97
100
|
end
|
98
101
|
|
99
102
|
def register_kernel
|
100
|
-
|
101
|
-
FileUtils.mkpath(File.dirname(@kernel_file))
|
103
|
+
FileUtils.mkpath(@kernel_dir)
|
102
104
|
File.write(@kernel_file, %{{
|
103
105
|
"argv": [ "#{File.expand_path $0}", "kernel", "{connection_file}" ],
|
104
106
|
"display_name": "Ruby",
|
105
107
|
"language": "ruby"
|
106
108
|
}
|
107
109
|
})
|
110
|
+
Dir[File.join(__dir__, 'logo', 'logo-*.png')].each do |file|
|
111
|
+
FileUtils.copy(File.expand_path(file), File.join(@kernel_dir, File.basename(file))) rescue nil
|
112
|
+
end
|
108
113
|
end
|
109
114
|
|
110
115
|
def unregister_kernel
|
111
|
-
|
116
|
+
FileUtils.rm_rf(@kernel_dir)
|
112
117
|
end
|
113
118
|
end
|
114
119
|
end
|
Binary file
|
Binary file
|
data/lib/iruby/version.rb
CHANGED
data/logo/logo-32x32.png
ADDED
Binary file
|
data/logo/logo-64x64.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -125,6 +125,8 @@ files:
|
|
125
125
|
- lib/iruby/formatter.rb
|
126
126
|
- lib/iruby/kernel.rb
|
127
127
|
- lib/iruby/logger.rb
|
128
|
+
- lib/iruby/logo/logo-32x32.png
|
129
|
+
- lib/iruby/logo/logo-64x64.png
|
128
130
|
- lib/iruby/ostream.rb
|
129
131
|
- lib/iruby/session.rb
|
130
132
|
- lib/iruby/utils.rb
|
@@ -132,6 +134,8 @@ files:
|
|
132
134
|
- logo/favicon.ico
|
133
135
|
- logo/iruby.png
|
134
136
|
- logo/iruby.svg
|
137
|
+
- logo/logo-32x32.png
|
138
|
+
- logo/logo-64x64.png
|
135
139
|
- logo/ruby.svg
|
136
140
|
- screenshot.png
|
137
141
|
- test/integration_test.rb
|
@@ -145,7 +149,6 @@ post_install_message: |+
|
|
145
149
|
Consider installing the optional dependencies to get additional functionality:
|
146
150
|
* pry
|
147
151
|
* pry-doc
|
148
|
-
* pry-theme
|
149
152
|
* awesome_print
|
150
153
|
* gnuplot
|
151
154
|
* rubyvis
|