Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appendix C examples - wrong paths #29

Open
antonbabkin opened this issue Jun 18, 2019 · 0 comments
Open

Appendix C examples - wrong paths #29

antonbabkin opened this issue Jun 18, 2019 · 0 comments

Comments

@antonbabkin
Copy link

Some paths are broken in notebooks/_Appendix C - Python & Jupyter Notebook Tips.ipynb

Starting docker with this command (on Mac):

docker run --rm -p 8888:8888 -v "$PWD"/notebooks:/home/jovyan/notebooks mtsw3e:latest

This code throws FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/notebooks/README.md':

shared_folder="/home/jovyan/notebooks"
README = os.path.join(shared_folder, "README.md")

Because README.md is at the root of the repository, but only "/notebooks/" are visible inside of a container.

The following documentation is not accurate as well:

Shared Folders

The Docker container maps the top level directory of your GitHub checkout (the directory containing README.md) on your host machine to its /home/jovyan/notebooks folder and automatically synchronizes files between the guest and host environments as an incredible convenience to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant