[10x27] How to use External Packages in Julia

  Рет қаралды 1,516

doggo dot jl

doggo dot jl

Күн бұрын

Learn how to use External Packages in Julia.
Learn how to use Julia's Package Manager.
Demonstrations include how to use the Plots.jl Package.
This video is a chapter in the "Julia for Absolute Beginners" series, which is a collection of "how-to" videos to help you get started on your journey to learn how to write code using the Julia Programming Language.
##############################
Link for this Video
##############################
Code for this tutorial
github.com/jul...
Julia Packages Search
juliahub.com/u...
Pkg.jl Documentation (Julia Package Manager)
pkgdocs.julial...
Plots.jl Documentation
docs.juliaplot...
##############################
Links for this Series
##############################
Julia for Absolute Beginners Playlist
• Tutorial Series 10 | J...
The Julia Programming Language Website
julialang.org/
##############################
Join Button (Channel Membership):
If you like what I do, then please consider Joining and becoming a Channel Member.
/ @doggodotjl
Thank you!

Пікірлер: 5
@snehapandey9978
@snehapandey9978 8 ай бұрын
you're god! helped a lot nice explanation
@cemtutum273
@cemtutum273 8 ай бұрын
Is there any particular reason for using ";" in the plot function after f? Comma also works. Also, similarly, why do we define the color with a symbol :red? Is it registered by default as the string "red"?
@doggodotjl
@doggodotjl 8 ай бұрын
By convention, function arguments are separated from keyword arguments using a semi-colon, but in Julia, you can use either a semi-colon or a comma. When using the Plots package, you can either use a Symbol or a String for the color name.
@berntlie6799
@berntlie6799 8 ай бұрын
Use of Project and Manifest has always been a mystery to me... so I've never started to use it. I understand the importance of keeping track of package version numbering -- there may be breaking changes as packages are upgraded, with a result that I may have to rewrite Julia code. Instead, I can activate a former Project and run the old code that used to work. I also understand the importance of Manifest, I think. Also, it may be important to keep track of Julia version. Some years ago (?), updating from Julia 1.6 to 1.7 or so, Turing.jl didn't work for several months. So in that case, I would have to know that I also had to use a certain version of Julia. -- The "External Packages" video is a good starting point for how to "activate" a project. But I still have questions... * What if I close down VSCode/turn off my computer. Then I restart the computer, re-open VSCode, and go back to the same directory. Is the project automatically activated when in that directory, or do I have to re-run the ". activate" command? * What if I continue working on a file in a given directory, and decide to add more packages. Are they automatically put into the project for that given directory? Or do I have to re-run the ". activate" command every time I want to do a change? * What if I copy the file to another directory, and also copy the two *.toml files. Is that all it takes to make the code work with the original sets of packages/Julia version? * Is it possible to have the two *.toml files availale for subdirectories of the directory where the *.toml files are located, or do I have to put the *.toml files in every directory where I store code? * If I have different versions of, say, Plots, in different directories, I assume that all versions of Plots referenced in the various Project.toml files will be stored somewhere on my disk? * What if I have a working code with the given *.toml files in a given directory, and I want to see if the code works with newer versions of Julia/packages. What is the best strategy for doing this, and at the same time keep original *.toml files in case my code *doesn't* work with the updated versions of Julia/packages? * What if I push my code to GitHub. What is the best practice of handling *.toml files? OK... lots of questions, and probably basic questions :-o.
@doggodotjl
@doggodotjl 8 ай бұрын
Great questions! I think you can find answers to most of your questions in the Pkg.jl documentation (Julia Package Manager): pkgdocs.julialang.org/v1/ ...but I will attempt to answer some of your questions here: * When you go back into VS Code, you need to change the working directory to where the Project.toml file and Manifest.toml files are located. Then you need to enter the Package Manager and then type in "activate ." again. * You only need to type in "activate ." once per session. If you add another package during your session, it will be added to your existing .toml files. * If you copy the .jl file and the 2 .toml files to a new directory, then you need to change the working directory to that new directory. Then you need to enter the Package Manager and the type in "activate ." to activate that new directory. * I'm not sure I understand this question about the subdirectories. As a best practice, you should have a separate directory for each project. So if you have multiple project folders, they should each have their own Project.toml file and Manifest.toml file. * For the rest of your questions, I'm going to have to refer you to the Pkg.jl documentation.
[10x24] What does "Multiple Dispatch" mean in Julia?
15:20
doggo dot jl
Рет қаралды 1,8 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,4 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
Using and Developing Julia Packages
49:20
BYU FLOW Lab
Рет қаралды 966
[10x12] How to use Arrays in Julia
15:01
doggo dot jl
Рет қаралды 1,8 М.
Huffman Codes: An Information Theory Perspective
29:11
Reducible
Рет қаралды 227 М.
Creating a Julia Pkg with PkgTemplates.jl
11:08
Abel Siqueira
Рет қаралды 1,2 М.
[08x12] Intro to SciML
26:13
doggo dot jl
Рет қаралды 3,4 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 212 М.
[10x26] How to use Julia's Standard Library
7:10
doggo dot jl
Рет қаралды 935
Nobody Cares About Your Coding Projects
11:02
Tariq10x
Рет қаралды 85 М.
A Brief Introduction to Julia
26:13
Exercism
Рет қаралды 20 М.
Use Python Inside of R
12:04
NeuralNine
Рет қаралды 10 М.
how to make soler led bulb | How do you use a soldering iron first time?
1:00
Nk creative experiment
Рет қаралды 4,9 МЛН
E-Tachi B12 || FM3 Mobile Review Best Battery charger 2024
0:39