Giter Club home page Giter Club logo

Comments (9)

dpsanders avatar dpsanders commented on July 23, 2024

@YTCai: We need to add those lines so that everybody can use the notebook with the same versions of the packages, and for the online versions of the notebook.

You can open a notebook with a text editor to remove these lines from your local copy.

Which problems does it cause you?

from 18s191.

CaiYitao avatar CaiYitao commented on July 23, 2024

1, When I open the notebook next time it requires me to add some new packages which is not listed in those lines. it works when opening at the first time and then problems arises after that.

2, after I delete those lines it requires to install packages which is already exists, but it said it is not in current path!

3, I have checked in Package REPL, like type "st", those packages are actually not added to Julia.
I have been using Pluto since Sept.2020 (fall 2020 computational thinking course) have not run into any such problem.
when adding packages, simpler lines like
using Pkg; Pkg.add(" Packages") works, but those complicated lines does not.

from 18s191.

CaiYitao avatar CaiYitao commented on July 23, 2024

Thank you for prompt and kind reply, David, I love the course and learned a lot from you!

from 18s191.

fonsp avatar fonsp commented on July 23, 2024

Julia has a global package installation cache. The command Pkg.add just add package specifications to your currently activated list of packages, packages are only downloaded and installed if that version has never been installed before.

So your points 2 and 3 are the intended behavior. I am not sure what you mean with 1, can you be more specific about:

it requires me to add some new packages which is not listed in those lines

What do you mean with:

  • it
  • some new packages
  • those lines

from 18s191.

CaiYitao avatar CaiYitao commented on July 23, 2024

Hi Fons,
Thanks for your prompt reply.

For example:
The following are "those lines" ,

the first time is ok to use, but later when load the notebook it requires to add "QuartzImageIO" ( "some new packages")which it does not need when loading first time.

"It " means "notebook which have those lines".

import Pkg
Pkg.activate(mktempdir())
Pkg.add([
Pkg.PackageSpec(name="Images", version="0.22.4"),
Pkg.PackageSpec(name="ImageIO"),
Pkg.PackageSpec(name="PlutoUI", version="0.7"),
Pkg.PackageSpec(name="HypertextLiteral", version="0.5"),
Pkg.PackageSpec(name="ForwardDiff"),
Pkg.PackageSpec(name="NonlinearSolve"),
Pkg.PackageSpec(name="StaticArrays")
])

from 18s191.

fonsp avatar fonsp commented on July 23, 2024

Hi @YTCai,

Did you work on the exercises already? Did you change the input image?

from 18s191.

CaiYitao avatar CaiYitao commented on July 23, 2024

from 18s191.

CaiYitao avatar CaiYitao commented on July 23, 2024

from 18s191.

fonsp avatar fonsp commented on July 23, 2024

@YTCai Did you change the input image?

from 18s191.

Related Issues (20)

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.