- 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.
- INSTANT Mock Testing with PowerMock
- Mastering ServiceStack
- Java 11 Cookbook
- Oracle Exadata專家手冊
- C語言程序設計
- Android驅動開發權威指南
- Java EE 7 with GlassFish 4 Application Server
- 零基礎C#學習筆記
- 數據結構:Python語言描述
- 寫給青少年的人工智能(Python版·微課視頻版)
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- 分布式系統架構與開發:技術原理與面試題解析
- Learning GraphQL and Relay
- MATLAB/Simulink建模與仿真
- Visual FoxPro程序設計