-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
"] activate ./" required before “] status” in the "1. Environment setup.ipynb" #2
Comments
Thank you for reporting this. It seems to be a problem with nteract as what I use follows the specification how things should work https://github.com/JuliaLang/IJulia.jl#julia-projects (and they work this way for me). Before we move forward - please confirm that you start Jupyter Notebook in the directory where Project.toml is located (I assume yes). If this is the case then I will report the issue in https://github.com/JuliaLang/IJulia.jl. CC @stevengj as you maybe know about this issue already. |
You are welcome. I did more tests just now to reproduce this issue:
I tried to run the same notebook with Project.toml already exists in the same folder. It correctly recognized the path "./Introduction to DataFrames.jl/Project.toml" without an issue. I guess IJulia has a mechanism to look for Project.toml file in the same folder as the notebook first, if it doesn't exist, then fallback to the default Julia path. If this is true, then this issue can be avoided if a student clones all notebooks and toml files from GitHub directly instead of just download one notebook from JuliaAcademy. Or just add "] activate ./" before “] status” as a safe net. |
So - you are correct. Project.toml is looked for when you start the notebook. A standard procedure is - as you indicated - to clone the whole repository first (rather than downloading a single file). I will update README.md to highlight that. |
Thank you professor! 👍 |
Hey Professor Kamiński,
Thanks for the awesome DataFrames.jl package and the pragmatic tutorial on JuliaAcademy!
It seems we need an additional line of code, "] activate ./", before we call “] status” in the first notebook "1. Environment setup.ipynb".
I'm using nteract 0.24.0 with Julia 1.4.2 on a Mac. Without "] activate ./", the "] status" looks for Project.toml file in the default Julia path (~/.julia/environments/v1.4/Project.toml) instead of the current working path where the notebook locates.
Thanks,
Adam
The text was updated successfully, but these errors were encountered: