Giter Club home page Giter Club logo

Comments (4)

bkamins avatar bkamins commented on July 30, 2024

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.

from dataframes.

adam-zd avatar adam-zd commented on July 30, 2024

You are welcome. I did more tests just now to reproduce this issue:

  • Step 1: Download the "1. Environment setup.ipynb" from the link below the tutorial video on JuliaAcademy and put it under "./Introduction to DataFrames.jl/"
  • Step 2: Double-click to run the notebook with nteract. (At this time, the Project.toml file doesn't exist. The folder only contains one notebook file.)
  • Step 3: Yesterday when I reached "isfile.(["Project.toml", "Manifest.toml"])" I realized I need these two files from GitHub. So I downloaded as zip archive and extracted the files to the same folder where the "1. Environment setup.ipynb" from Step 1 located. (At this time, the "1. Environment setup.ipynb" was still open in nteract.)
  • Step 4: Run "isfile.(["Project.toml", "Manifest.toml"])" to get two 1s.
  • Step 5: Run "] status" to get "~/.julia/environments/v1.4/Project.toml" checked instead of the "./Introduction to DataFrames.jl/Project.toml"

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.

from dataframes.

bkamins avatar bkamins commented on July 30, 2024

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.

from dataframes.

adam-zd avatar adam-zd commented on July 30, 2024

Thank you professor! 👍

from dataframes.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.