Open MilesCranmer opened 1 year ago
I have the same problem and hope it will be fixed soon
VSCode
OS: Windows (x86_64-w64-mingw32) CPU: 32 × AMD Ryzen 9 7950X 16-Core Processor WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-13.0.1 (ORCJIT, znver3) Threads: 32 on 32 virtual cores Environment: JULIA_EDITOR = code.cmd -g
Try to run this:
using Rocket, Compose, IJulia ; set_default_graphic_size(35cm, 2cm)
function draw_ball(t)
IJulia.clear_output(true)
x = -exp(-0.01t) + 1 # x coordinate
y = -abs(exp(-0.04t)*(cos(0.1t))) + 0.83 # y coordinate
display(compose(context(), circle(x, y, 0.01)))
end
source = interval(20) |> take(200) # Take only first 200 emissions
subscription = subscribe!(source, draw_ball)```
sleep(5)
Hey,
Not sure what this error is, but running
clear_output
inside a Jupyter notebook seems to result in an undefined reference error. MWE below.versioninfo()
juliaup
In a Jupyter notebook:
produces the error:
Confirmed this also happens with no output, and with
wait
set totrue
orfalse
.I am using the official Jupyter extension inside VSCode. This is version
v2023.1.2010391206
.