Plotting with PythonPlot.jl

Plotting with PythonPlot.jl#

With Jupyter notebook.

import PythonPlot as plt
using Random
Random.seed!(2022)
TaskLocalRNG()
plt.plot(1:5, rand(1:6, 5))
_images/322a0acdff4a869bde35dd614701c68023ea6db06e8d1a0ed3993538b7206640.png
Python: [<matplotlib.lines.Line2D object at 0x7f374b534920>]
versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 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-16.0.6 (ORCJIT, znver3)
Threads: 2 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_CI = true
  LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.12.8/x64/lib
  JULIA_NUM_THREADS = 2
  JULIA_PYTHONCALL_EXE = /opt/hostedtoolcache/Python/3.12.8/x64/bin/python
import Pkg
Pkg.status()
Status `~/work/template-juliabook/template-juliabook/Project.toml`
  [274fc56d] PythonPlot v1.0.5