You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't have notebooks in subfolders, as to import jupman module
Possible solutions:
a. add stuff like sys.path.append('../') to all files
b. using symlinks to link parent algolab
c. add some new default kernel that includes the paths I want
d. use Jupyter magic like %run ../../lib.py
- Prepended all functions in jupman.py with `jupman_`
- Fixed sphinx and tornado versions in requirements:
sphinx==1.7.6
+tornado=4.5.3
- Replaced previous init code at beginning of notebooks. Now use this (see discussion in #12):
%run -i ../../jupman
jupman_init()
- Prepended all functions in jupman.py with `jupman_`
- Fixed sphinx and tornado versions in requirements:
sphinx==1.7.6
+tornado=4.5.3
- Replaced previous init code at beginning of notebooks. Now use this (see discussion in #12):
%run -i ../../jupman
jupman_init()
Can't have notebooks in subfolders, as to import jupman module
Possible solutions:
a. add stuff like
sys.path.append('../')
to all filesb. using symlinks to link parent algolab
c. add some new default kernel that includes the paths I want
d. use Jupyter magic like
%run ../../lib.py
all solutions which I don't quite like
See also
Attempts with d. Jupyter magics
I tried putting this:
Passing parameters like
--toc
and
--root=../../
Some thoughts:
%run
executes the script, to prevent namespace pollution all functions start with 'jupman_'%run
, last command output is not shown in Jupyter, for that you have to explictly calljupman_init()
function in Jupyter.ipynb
, but discoverd it is not possible to pass parametersDecision: sys.path.append
Finally adopted this, it's less weird and just works
The text was updated successfully, but these errors were encountered: