-
Given a Makie Scene in a variable Any suggestion for a fix? Example code in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I am also having this issue. Were you able to find any solutions? |
Beta Was this translation helpful? Give feedback.
-
Like @asinghvi17 mentioned, using JuliaCall fixes this issue. The following code works in an Ipython notebook from juliacall import Main as jl
# Install the Makie package. This only needs to be run once
import juliapkg
juliapkg.add("CairoMakie", uuid="13f3f980-e62b-5c42-98c6-ff1f3baf88f0")
# Import CairoMakie into the Julia session
jl.seval("using CairoMakie")
import numpy as np
x = np.linspace(0.1, 10, 30)
f = lambda x: x**2 * np.sin(x + 1/x)
y = f(x)
fig, ax, lns = jl.lines(x, y, label="Simple function")
jl.axislegend(position=jl.seval(':lt'))
fig |
Beta Was this translation helpful? Give feedback.
Like @asinghvi17 mentioned, using JuliaCall fixes this issue. The following code works in an Ipython notebook