Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

With Jupyter notebook.

using Plots
using Random
Plots.default(fmt=:png)
Random.seed!(2024)
Precompiling packages...
    738.9 ms  ✓ LaTeXStrings
    805.8 ms  ✓ Contour
    829.8 ms  ✓ StatsAPI
    836.4 ms  ✓ TensorCore
    911.2 ms  ✓ Measures
    971.9 ms  ✓ Statistics
   2398.2 ms  ✓ Format
   1300.0 ms  ✓ Requires
    811.2 ms  ✓ StableRNGs
    648.2 ms  ✓ Reexport
   3062.4 ms  ✓ OrderedCollections
    883.0 ms  ✓ DocStringExtensions
   4400.5 ms  ✓ Grisu
   1202.9 ms  ✓ URIs
    990.7 ms  ✓ SimpleBufferStream
   3298.3 ms  ✓ Unzip
    791.3 ms  ✓ PtrArrays
   6131.3 ms  ✓ MacroTools
   1221.2 ms  ✓ TranscodingStreams
    550.5 ms  ✓ DataAPI
    850.1 ms  ✓ DelimitedFiles
    805.5 ms  ✓ BitFlags
    812.7 ms  ✓ Scratch
   1302.4 ms  ✓ ConcurrentUtilities
    810.3 ms  ✓ JLLWrappers
   1020.8 ms  ✓ LoggingExtras
   2937.0 ms  ✓ NaNMath
   5330.5 ms  ✓ IrrationalConstants
   1244.2 ms  ✓ ExceptionUnwrapping
   2273.6 ms  ✓ UnicodeFun
   1121.0 ms  ✓ Statistics → SparseArraysExt
    659.1 ms  ✓ Showoff
    886.6 ms  ✓ AliasTables
    906.8 ms  ✓ CodecZlib
   3551.5 ms  ✓ RecipesBase
    849.6 ms  ✓ RelocatableFolders
   3267.5 ms  ✓ DataStructures
   1239.3 ms  ✓ Graphite2_jll
   1257.3 ms  ✓ Libmount_jll
   3297.4 ms  ✓ Missings
   6419.9 ms  ✓ FixedPointNumbers
   1031.6 ms  ✓ EpollShim_jll
   3837.3 ms  ✓ OpenSSL
   1608.9 ms  ✓ LLVMOpenMP_jll
   1335.4 ms  ✓ Bzip2_jll
   1305.6 ms  ✓ Xorg_libpciaccess_jll
   1237.2 ms  ✓ Xorg_libICE_jll
   1174.7 ms  ✓ Xorg_libXau_jll
   1230.7 ms  ✓ libpng_jll
   1232.5 ms  ✓ libfdk_aac_jll
   1104.5 ms  ✓ LAME_jll
   1376.6 ms  ✓ LERC_jll
   1081.2 ms  ✓ fzf_jll
   1330.9 ms  ✓ JpegTurbo_jll
   1203.9 ms  ✓ Ogg_jll
   1546.0 ms  ✓ XZ_jll
   1125.3 ms  ✓ mtdev_jll
   1137.1 ms  ✓ Xorg_libXdmcp_jll
   1289.7 ms  ✓ x265_jll
   1330.9 ms  ✓ MbedTLS_jll
   1480.9 ms  ✓ x264_jll
   1204.1 ms  ✓ libaom_jll
   1352.7 ms  ✓ Zstd_jll
   1122.9 ms  ✓ Expat_jll
    928.6 ms  ✓ Xorg_xtrans_jll
   1164.8 ms  ✓ LZO_jll
   1311.8 ms  ✓ Opus_jll
    997.1 ms  ✓ libevdev_jll
   1109.0 ms  ✓ Libiconv_jll
   1029.6 ms  ✓ Libffi_jll
   1048.2 ms  ✓ Libuuid_jll
   1073.6 ms  ✓ FriBidi_jll
   1377.8 ms  ✓ eudev_jll
    867.0 ms  ✓ SortingAlgorithms
   1213.2 ms  ✓ LogExpFunctions
   1138.1 ms  ✓ Pixman_jll
   1048.5 ms  ✓ libdrm_jll
   1473.9 ms  ✓ FreeType2_jll
   1143.8 ms  ✓ Xorg_libSM_jll
   1057.6 ms  ✓ JLFzf
   1490.9 ms  ✓ libvorbis_jll
   1778.2 ms  ✓ MbedTLS
   2605.1 ms  ✓ Ghostscript_jll
   1370.8 ms  ✓ Libtiff_jll
   4555.1 ms  ✓ ColorTypes
   3369.2 ms  ✓ Xorg_libxcb_jll
   1183.7 ms  ✓ Dbus_jll
   1485.7 ms  ✓ GettextRuntime_jll
   1343.6 ms  ✓ Wayland_jll
   1502.4 ms  ✓ libinput_jll
   1613.5 ms  ✓ Fontconfig_jll
    861.2 ms  ✓ ColorTypes → StyledStringsExt
   6033.2 ms  ✓ StatsBase
   5768.6 ms  ✓ ColorVectorSpace
   1378.9 ms  ✓ Xorg_xcb_util_jll
   1490.7 ms  ✓ Xorg_libX11_jll
   7747.1 ms  ✓ Latexify
   1958.8 ms  ✓ Glib_jll
   1215.2 ms  ✓ Xorg_xcb_util_image_jll
   1367.8 ms  ✓ Xorg_xcb_util_keysyms_jll
   1383.0 ms  ✓ Xorg_xcb_util_renderutil_jll
   1210.1 ms  ✓ Xorg_libXrender_jll
   1572.4 ms  ✓ Xorg_xcb_util_wm_jll
   1392.8 ms  ✓ Xorg_libXext_jll
   1268.9 ms  ✓ Xorg_libxkbfile_jll
   9772.3 ms  ✓ Colors
   1361.9 ms  ✓ Xorg_libXfixes_jll
   1017.3 ms  ✓ Xorg_libXinerama_jll
   1312.5 ms  ✓ Latexify → SparseArraysExt
   1236.8 ms  ✓ Xorg_xcb_util_cursor_jll
   1255.6 ms  ✓ Xorg_libXrandr_jll
   1052.5 ms  ✓ Xorg_xkbcomp_jll
   1599.2 ms  ✓ Libglvnd_jll
   1558.9 ms  ✓ Cairo_jll
   1154.3 ms  ✓ Xorg_libXcursor_jll
   1495.1 ms  ✓ Xorg_libXi_jll
   1412.9 ms  ✓ libva_jll
   1170.9 ms  ✓ Xorg_xkeyboard_config_jll
   1101.5 ms  ✓ HarfBuzz_jll
   1182.4 ms  ✓ xkbcommon_jll
   1466.4 ms  ✓ libass_jll
   1655.1 ms  ✓ Pango_jll
   1275.4 ms  ✓ Vulkan_Loader_jll
   1513.7 ms  ✓ libdecor_jll
   2173.3 ms  ✓ FFMPEG_jll
   7753.2 ms  ✓ ColorSchemes
   1526.6 ms  ✓ GLFW_jll
   2893.2 ms  ✓ Qt6Base_jll
   1277.7 ms  ✓ FFMPEG
   1465.1 ms  ✓ Qt6Svg_jll
   1513.2 ms  ✓ Qt6ShaderTools_jll
   2021.4 ms  ✓ GR_jll
   4066.1 ms  ✓ Qt6Declarative_jll
    990.1 ms  ✓ Qt6Wayland_jll
  33129.8 ms  ✓ HTTP
  15066.3 ms  ✓ PlotUtils
   5717.1 ms  ✓ GR
   3734.6 ms  ✓ PlotThemes
   4934.0 ms  ✓ RecipesPipeline
  56802.5 ms  ✓ Plots
  140 dependencies successfully precompiled in 127 seconds. 41 already precompiled.
Random.TaskLocalRNG()
plot(1:5, rand(1:6, 5))
Plot{Plots.GRBackend() n=1}

Runtime information

using InteractiveUtils
InteractiveUtils.versioninfo()
Julia Version 1.12.5
Commit 5fe89b8ddc1 (2026-02-09 16:05 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, icelake-server)
  GC: Built with stock GC
Threads: 4 default, 1 interactive, 4 GC (on 4 virtual cores)
Environment:
  JULIA_CI = true
  JULIA_NUM_THREADS = auto
import Pkg
Pkg.status()
Status `~/work/template-juliabook-matrix/template-juliabook-matrix/Project.toml`
  [682c06a0] JSON v1.4.0
  [98b081ad] Literate v2.21.0
  [91a5bcdd] Plots v1.41.6
  [274fc56d] PythonPlot v1.0.6

This notebook was generated using Literate.jl.