int-brain-lab / IBL-pipeline

DataJoint pipeline for IBL project
21 stars 31 forks source link

map docker to ibl_pipeline rather than notebooks folder #8

Closed anne-urai closed 5 years ago

anne-urai commented 5 years ago

Most users will want to run python code that is in a script, not a notebook. Given that the location of the scripts is changing, could there be a stable top-level scripts folder where the user is dropped after running ibl_docker_setup.sh?

shenshan commented 5 years ago

Yes, we figured out a method to achieve this. In your ibl_docker_setup.sh, replace the last line with the following:

docker exec -it ibl-pipeline_datajoint_1 sh -c 'cd /src/ibl-pipeline/scripts; exec /bin/bash'
anne-urai commented 5 years ago

great! could you change that in the upstream so that future users automatically get that version?

shenshan commented 5 years ago

Yes I changed them. It depends on which folder they want to go to. So I leave it in a commenting line.

anne-urai commented 5 years ago

Can you be more specific? I just pulled from upstream but I'm still landing in the notebooks folder when running ibl_docker_setup.sh