Comments (9)
@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.
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.
Thank you for prompt and kind reply, David, I love the course and learned a lot from you!
from 18s191.
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.
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.
Hi @YTCai,
Did you work on the exercises already? Did you change the input image?
from 18s191.
from 18s191.
from 18s191.
@YTCai Did you change the input image?
from 18s191.
Related Issues (20)
- inverse_climate_model failed to precompile Plots
- Notebook not being recognized by Pluto
- hw1 Ex3.5 noisify test
- Add T-shirt link on the website HOT 1
- Add CompThinking Twitter on website HOT 1
- README updates vs index
- Code in "Newton method in 2D" doesn't match the latex equation
- Symbolic expansion broken in Newton notebook 1.6 HOT 1
- is there a plan to start the course in Fall21?
- Internal links opened from notebooks show the sidebar twice (bug) HOT 1
- [Website] Hide sidebar HOT 1
- Preinstall packages for offline access
- Variable red overrides function in images.jl
- Homework 1 - images and arrays, "Section 1.1" url in a hint leads to a 404 page
- Typo on class Section 3.2 notes, the Fall 2023 edition. HOT 1
- Link on readme is to Spring21 instead of latest HOT 1
- Varible red overrides function in hw1.jl HOT 1
- License HOT 3
- Embedded Youtube URL link empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 18s191.