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.

import PythonPlot as plt
using Random
Random.seed!(2022)
    CondaPkg Found dependencies: /home/runner/.julia/packages/CondaPkg/lKlVY/CondaPkg.toml
    CondaPkg Found dependencies: /home/runner/.julia/packages/PythonCall/5WGSP/CondaPkg.toml
    CondaPkg Found dependencies: /home/runner/.julia/packages/PythonPlot/96RVm/CondaPkg.toml
    CondaPkg Dependencies already up to date
Random.TaskLocalRNG()
plt.figure()
plt.plot(1:5, rand(1:6, 5))
plt.gcf()
PythonPlot.Figure(<py Figure size 640x480 with 1 Axes>)

Runtime information

import Pkg
Pkg.status()
Status `~/work/template-juliabook/template-juliabook/Project.toml`
  [682c06a0] JSON v1.6.1
  [98b081ad] Literate v2.21.0
  [1862ce21] MarkdownTables v1.1.0
  [91a5bcdd] Plots v1.41.6
  [274fc56d] PythonPlot v1.0.8
  [ec0733a6] Startup v0.1.0 `Startup`
  [bd369af6] Tables v1.13.0
  [ea8e919c] SHA v0.7.0
import InteractiveUtils
InteractiveUtils.versioninfo()
Julia Version 1.12.6
Commit 15346901f00 (2026-04-09 19:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × AMD EPYC 9V74 80-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver4)
  GC: Built with stock GC
Threads: 2 default, 1 interactive, 2 GC (on 4 virtual cores)
Environment:
  JULIA_CI = true
  LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.14.6/x64/lib
  JULIA_CONDAPKG_ENV = @mpl
  JULIA_PROJECT = /home/runner/work/template-juliabook/template-juliabook/Project.toml
  JULIA_DEPOT_PATH = /home/runner/.julia:/opt/hostedtoolcache/julia/1.12.6/x64/local/share/julia:/opt/hostedtoolcache/julia/1.12.6/x64/share/julia
  JULIA_NUM_THREADS = 2
  JULIA_LOAD_PATH = @:@v#.#:@stdlib
  JULIA_CPU_TARGET = generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)
  JULIA_PYTHONCALL_EXE = /home/runner/.julia/conda_environments/mpl/bin/python

This notebook was generated using Literate.jl.