jupyter_on_rails 0.10.0 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b32009995240fae40e2d80e6a68039ed673f69fe96817b12351e2ee68ef379
4
- data.tar.gz: 0bf6f03122bfbe572a61cefb2fbda365bda43e935c199a38fa0e8c2780a9f991
3
+ metadata.gz: 9cf8414bcf2477c6f0ab5f05153c2dfc284ca6efa13f4e13971d678c89129672
4
+ data.tar.gz: 3faf28c8f979d5e7b27e676ecd6e0ddab7306458a3d7f18abafc1dc3bc2eabdf
5
5
  SHA512:
6
- metadata.gz: 0ae8424810f441ce8b5aac30a7fce4333a20309fe02b5eee48675c7b1968a74b50b5b5afbaf36019c25c1165f625d6659fa0b7a7f38872d6c1b212d0d66e5b33
7
- data.tar.gz: 3c54d670bbd7961a0f82a7e5786e8240d00e3ea28ca5ec372015db907f9ef94b615465d97bb7037053a5b8bfcc178539ef0422a379e0775102eb2f1acbaf1470
6
+ metadata.gz: 5ca7ade7c2e39d21c09ef6e7030f0bdc1c4acc751fdc5a7c3aa2f0d97d7fbe9b025af9decae5886dbf5ee9483dd0a32b97bdc51404eab4d0e3ef281b761aa55e
7
+ data.tar.gz: ebe590b5ab2c2c0f0a262c6072a795e082467ffc27853fc8190f10f8090f7269ccb4a08284afa1be2ab195030cd2c5451b72d2fb918c99f888d69b0897840876
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jupyter_on_rails (0.10.0)
4
+ jupyter_on_rails (0.11.0)
5
5
  daru
6
6
  iruby
7
7
  railties
@@ -6,12 +6,12 @@ require 'ostruct'
6
6
 
7
7
  # rubocop:disable Metrics/BlockLength
8
8
  namespace :jupyter do
9
- desc 'start jupyter notebook'
10
- task notebook: :install_kernels do
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 = %w[jupyter notebook]
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JupyterOnRails
4
- VERSION = '0.10.0'
4
+ VERSION = '0.11.0'
5
5
  end
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.10.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-30 00:00:00.000000000 Z
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.2.32
159
+ rubygems_version: 3.1.6
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Integrate jupyter into rails