i have installed ipython jupyter console sublimerepl using link https://gist.github.com/mattdmo/6cb1dfbe8a124e1ca5af
however, face problem, when start "jupyter console", doesn't load current directory in working.
for instance, working on file "text.py in directory "/home/sam/desktop/programs/" , run manual import "import text" in sublimerepl (jupyter console), module not found error
importerror traceback (most recent call last) <ipython-input-3-0660e90ee9d4> in <module>() ----> 1 import text importerror: no module named text
i refered link set working directory location of active script in sublimerepl , checked directory of cwd using os.getcwd()
the directory see /opt/sublimetext
i tried changing "cwd" "cwd": "$file_path", current path,"cwd": "/home/sam/desktop/programs/" in "main.sublime-menu" file
i wondering if there way register directory manually or better if sublimerepl automatically pick directory, since i'll importing files different locations.
thanks.
Comments
Post a Comment