jupyter_on_rails 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jupyter_on_rails/railtie/jupyter.rake +13 -3
- data/lib/jupyter_on_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf8414bcf2477c6f0ab5f05153c2dfc284ca6efa13f4e13971d678c89129672
|
4
|
+
data.tar.gz: 3faf28c8f979d5e7b27e676ecd6e0ddab7306458a3d7f18abafc1dc3bc2eabdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca7ade7c2e39d21c09ef6e7030f0bdc1c4acc751fdc5a7c3aa2f0d97d7fbe9b025af9decae5886dbf5ee9483dd0a32b97bdc51404eab4d0e3ef281b761aa55e
|
7
|
+
data.tar.gz: ebe590b5ab2c2c0f0a262c6072a795e082467ffc27853fc8190f10f8090f7269ccb4a08284afa1be2ab195030cd2c5451b72d2fb918c99f888d69b0897840876
|
data/Gemfile.lock
CHANGED
@@ -6,12 +6,12 @@ require 'ostruct'
|
|
6
6
|
|
7
7
|
# rubocop:disable Metrics/BlockLength
|
8
8
|
namespace :jupyter do
|
9
|
-
|
10
|
-
|
9
|
+
|
10
|
+
exec_jupyter_command = lambda do |subcomand|
|
11
11
|
ipython_dir = ENV['IPYTHONDIR'] || Rails.root / '.ipython'
|
12
12
|
|
13
13
|
env = { 'JUPYTER_DATA_DIR' => ipython_dir.to_s }
|
14
|
-
commands =
|
14
|
+
commands = ['jupyter', subcomand]
|
15
15
|
|
16
16
|
if (Rails.root / 'pyproject.toml').exist?
|
17
17
|
commands = %w[poetry run] + commands
|
@@ -22,6 +22,16 @@ namespace :jupyter do
|
|
22
22
|
Process.exec(env, *commands)
|
23
23
|
end
|
24
24
|
|
25
|
+
desc 'start jupyter notebook'
|
26
|
+
task notebook: :install_kernels do
|
27
|
+
instance_exec('notebook', &exec_jupyter_command)
|
28
|
+
end
|
29
|
+
|
30
|
+
desc 'start jupyter lab'
|
31
|
+
task lab: :install_kernels do
|
32
|
+
instance_exec('lab', &exec_jupyter_command)
|
33
|
+
end
|
34
|
+
|
25
35
|
desc 'Install the kernel'
|
26
36
|
task :install_kernels do
|
27
37
|
root = Rails.root
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jupyter_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki INOUE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.1.6
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Integrate jupyter into rails
|