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.

Using Literate.jl

import PythonPlot as plt
using Random
Random.seed!(2022)
    CondaPkg Found dependencies: /home/runner/.julia/packages/CondaPkg/8GjrP/CondaPkg.toml
    CondaPkg Found dependencies: /home/runner/.julia/packages/PythonCall/83z4q/CondaPkg.toml
    CondaPkg Found dependencies: /home/runner/.julia/packages/PythonPlot/oS8x4/CondaPkg.toml
    CondaPkg Resolving changes
             + libstdcxx
             + libstdcxx-ng
             + matplotlib
             + openssl
             + python
    CondaPkg Initialising pixi
             │ /home/runner/.julia/artifacts/cefba4912c2b400756d043a2563ef77a0088866b/bin/pixi
             │ init
             │ --format pixi
             └ /home/runner/work/template-juliabook-matrix/template-juliabook-matrix/.CondaPkg
✔ Created /home/runner/work/template-juliabook-matrix/template-juliabook-matrix/.CondaPkg/pixi.toml
    CondaPkg Wrote /home/runner/work/template-juliabook-matrix/template-juliabook-matrix/.CondaPkg/pixi.toml
             │ [dependencies]
             │ openssl = ">=3, <3.6"
             │ libstdcxx = ">=3.4,<15.0"
             │ libstdcxx-ng = ">=3.4,<15.0"
             │ matplotlib = ">=1"
             │ 
             │     [dependencies.python]
             │     channel = "conda-forge"
             │     build = "*cp*"
             │     version = ">=3.10,!=3.14.0,!=3.14.1,<4"
             │ 
             │ [project]
             │ name = ".CondaPkg"
             │ platforms = ["linux-64"]
             │ channels = ["conda-forge"]
             │ channel-priority = "strict"
             └ description = "automatically generated by CondaPkg.jl"
    CondaPkg Installing packages
             │ /home/runner/.julia/artifacts/cefba4912c2b400756d043a2563ef77a0088866b/bin/pixi
             │ install
             └ --manifest-path /home/runner/work/template-juliabook-matrix/template-juliabook-matrix/.CondaPkg/pixi.toml
✔ The default environment has been installed.
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-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
import 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 × AMD EPYC 7763 64-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver3)
  GC: Built with stock GC
Threads: 4 default, 1 interactive, 4 GC (on 4 virtual cores)
Environment:
  JULIA_CI = true
  JULIA_NUM_THREADS = auto
  JULIA_PYTHONCALL_EXE = /home/runner/work/template-juliabook-matrix/template-juliabook-matrix/.CondaPkg/.pixi/envs/default/bin/python

This notebook was generated using Literate.jl.