JohnGriffiths / tvb-documentation

TVB documentation: RST and iPython notebooks
http://docs.thevirtualbrain.org/
Other
0 stars 0 forks source link

binder config #1

Open JohnGriffiths opened 5 years ago

JohnGriffiths commented 5 years ago

Having issues with getting binder to add the tvb repo paths in the postBuild script

After this

git clone https://github.com/the-virtual-brain/tvb-library
git clone https://github.com/the-virtual-brain/tvb-data

Tried this but doesn't seem to work (pythonpath defined here isn't global)

cd tvb-library
export PYTHONPATH=$PWD:$PYTHONPATH
cd ../tvb-data
export PYTHONPATH=$PWD:$PYTHONPATH
cd ..

Trying this one as an alternative, but not sure it will help

echo "export PYTHONPATH=/home/jovyan/tvb-library:"\$"PYTHONPATH" >> ~/.bashrc
echo "export PYTHONPATH=/home/jovyan/tvb-data:"\$"PYTHONPATH" >> ~/.bashrc
bash
JohnGriffiths commented 5 years ago

The simple fallback can be simply to instruct binder uses that they need to insert the following line at the top of notebooks when using binder:

import sys
sys.path.append('/home/jovyan/tvb-library')
sys.path.append('/home/jovyan/tvb-data')

...then everything should work out right.