- Julia 1.0 Programming Complete Reference Guide
- Ivo Balbaert Adrian Salceanu
- 149字
- 2021-06-24 14:21:40
Adding a new package
Before adding a new package, it is always a good idea to update your package database for the already installed packages with the up command. Then, add a new package by issuing the add PackageName command, and execute it by using PackageName in the code or in the REPL.
For example, to add 2D plotting capabilities, install the Plots package with add Plots in the Package mode by first typing ]. This installs the Plots package and all of its dependencies, building them when needed.
To make a graph of 100 random numbers between 0 and 1, execute the following commands:
using Plots plot(rand(100))
The rand(100) function is an array with 100 random numbers. This produces the following output:

After installing a new Julia version, update all the installed packages by running up in the Pkg REPL-mode.
- DBA攻堅(jiān)指南:左手Oracle,右手MySQL
- Ceph Cookbook
- Apache Spark 2.x Machine Learning Cookbook
- The React Workshop
- Python機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Mastering Apache Spark 2.x(Second Edition)
- C語言從入門到精通
- Practical GIS
- Java程序設(shè)計(jì)教程
- Scratch從入門到精通
- 基于GPU加速的計(jì)算機(jī)視覺編程:使用OpenCV和CUDA實(shí)時(shí)處理復(fù)雜圖像數(shù)據(jù)
- Java從入門到精通(視頻實(shí)戰(zhàn)版)
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發(fā)技術(shù)
- Netty 4核心原理與手寫RPC框架實(shí)戰(zhàn)