Skip to content

Commit e296836

Browse files
committed
Support JUPYTER_DATA_DIR environment variable in IRuby::Jupyter.default_data_dir
1 parent ef34efc commit e296836

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/iruby/jupyter.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ module IRuby
22
module Jupyter
33
class << self
44
# User's default kernelspec directory is described here:
5-
# https://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html
5+
# https://docs.jupyter.org/en/latest/use/jupyter-directories.html
66
def default_data_dir
7+
data_dir = ENV["JUPYTER_DATA_DIR"]
8+
return data_dir if data_dir
9+
710
case
811
when windows?
912
appdata = windows_user_appdata

0 commit comments

Comments
 (0)