# @drawsvg is missing from the Luxor package

**URL:** <https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235>\
**Category:** New to Julia\
**Tags:** luxor\
**Created:** [April 7, 2023, 7:56pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235 "2023-04-07T19:56:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 7, 2023, 7:56pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/1 "2023-04-07T19:56:54Z")

</div>

If I execute the code below (uncommented) in VS Code, **ERROR: LoadError: UndefVarError: @drawsvg not defined**. As is, it prints:  
@draw  
@eps  
@imagematrix  
@imagematrix!  
@layer  
@pdf  
@png  
@polar  
@setcolor\_str  
@svg

```julia
using Luxor
n=names(Luxor)
#=
@drawsvg begin
	for _ in 1:10
		circle(O, 3, :fill)
		# new coordinates
		translate(70 * rand() - 35, 70 * rand() - 35)
		rotate(2 * pi * rand())
end 200 200
=#
for n in names(Luxor)
    if string(n)[1] == '@'
    println(n)
    end
end

```

The drawing code was posted [here](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458) in January. Please, what am I missing?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 7, 2023, 8:00pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/2 "2023-04-07T20:00:44Z")

</div>

what version of Luxor are you using and what if you use

```julia
Luxor.@drawsvg

```

[https://juliagraphics.github.io/Luxor.jl/dev/reference/api/#Luxor.@drawsvg](https://juliagraphics.github.io/Luxor.jl/dev/reference/api/#Luxor.@drawsvg)

---

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 7, 2023, 8:05pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/3 "2023-04-07T20:05:01Z")

</div>

[ae8d54c2] Luxor v2.11.0  
It does not help to use “Luxor.@drawsvg” instead of “@drawsvg”.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [April 7, 2023, 8:19pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/4 "2023-04-07T20:19:19Z")

</div>

You’re about 2 years behind - time to upgrade to 3.7 😀

---

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 7, 2023, 8:24pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/5 "2023-04-07T20:24:13Z")

</div>

@cormullion  
Thanks or that, but I guess I don’t know how to do that. I did “up Luxor” to get what I have. BTW, will this work then?

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [April 7, 2023, 8:26pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/6 "2023-04-07T20:26:48Z")

</div>

What about the Julia version? Also, sometimes a package will be “held back” and not upgraded if it would otherwise break your current environment, so you might be out of date elsewhere…

---

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 7, 2023, 8:43pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/7 "2023-04-07T20:43:34Z")

</div>

@cormullion Julia 1.8.5. I have just updated and the error is gone. Thank you.

---

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 10, 2023, 10:14pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/8 "2023-04-10T22:14:40Z")

</div>

@cormullion: Since I had just installed Julia recently, I couldn’t understand how my Luxor was 2 years behind. One of the things I had done along the way was to follow instructions from the book “Think Julia”: “A convenience package is provided that can be directly added to Julia. Just type `add https://github.com/BenLauwens/ThinkJulia.jl` in the REPL in Pkg mode,…” I didn’t have much success with that and moved on to another book, " Interactive Visualization and Plotting with Julia".

To the point, I tried the “convenience” today and Luxor 3.7 was replaced by Luxor 1.12.0. Updating didn’t change it. I removed ThinkJulia and reran update to get back to Luxor 3.7.0. I have no idea how I got to Luxor 2.11.0 above, but I suppose something similar occurred. Not curious, so no question. Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [April 10, 2023, 10:36pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/9 "2023-04-10T22:36:54Z")

</div>

Yes, once upon a time, ThinkJulia.jl was shiny and new, and integrated Luxor as a simple turtle-graphics component. But time has passed and ThinkJulia.jl has been neglected for over three years, now. Although much of it should still be useful, there will be some versioning issues to be addressed: typically, you’d set up an environment for working with a set of older packages, and a different environment when you want to use more recent versions. The package manager is designed to allow this.

---

<div class="post-metadata">

**Author:** ![JustCurious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/justcurious/32/202801_2.png) [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Post date:** [April 10, 2023, 10:43pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235/10 "2023-04-10T22:43:28Z")

</div>

@Cormullion: I had thought of trying that, but I’m plodding through the Luxor at the moment. And, the book is still useful in many respects. Thanks.
