# Importing ThinkJulia

**URL:** <https://discourse.julialang.org/t/importing-thinkjulia/71700>\
**Category:** New to Julia\
**Created:** [November 18, 2021, 5:49am UTC](https://discourse.julialang.org/t/importing-thinkjulia/71700 "2021-11-18T05:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmedina](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jmedina](https://discourse.julialang.org/u/jmedina)\
**Post date:** [November 18, 2021, 5:49am UTC](https://discourse.julialang.org/t/importing-thinkjulia/71700/1 "2021-11-18T05:49:36Z")

</div>

Hi, I’m learning some of Julia from “ThinkJulia” (Lauwens & Downey, O’reilly).  
I’m using the shell in [Want to try programming in Julia?](https://julialang.org/learning/tryjulia/) and hangs when I do julia\> using ThinkJulia. Does anyone know, why?

---

<div class="post-metadata">

**Author:** ![Bardo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bardo/32/21601_2.png) [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Post date:** [November 18, 2021, 1:19pm UTC](https://discourse.julialang.org/t/importing-thinkjulia/71700/2 "2021-11-18T13:19:50Z")

</div>

Not sure if [this](https://julialang.org/learning/tryjulia/), [this](https://code.labstack.com/julia), or [this](https://www.tutorialspoint.com/execute_julia_online.php) online Julia is capable of loading all packages.  
Another difficulty is that [ThinkJulia.jl](https://github.com/BenLauwens/ThinkJulia.jl) is not a registered package.

I can recommend this book and code.  
You better go with a local (or portable, search discourse) Julia installation.

```julia
julia> ]

(@v1.7) pkg> add ThinkJulia
   Resolving package versions...
ERROR: expected package `ThinkJulia [a7f2b756]` to be registered

(@v1.7) pkg> add https://github.com/BenLauwens/ThinkJulia.jl
    Updating git-repo `https://github.com/BenLauwens/ThinkJulia.jl`
...

```

---

<div class="post-metadata">

**Author:** ![jmedina](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jmedina](https://discourse.julialang.org/u/jmedina)\
**Post date:** [November 19, 2021, 1:28am UTC](https://discourse.julialang.org/t/importing-thinkjulia/71700/3 "2021-11-19T01:28:30Z")

</div>

> … is capable of loading all packages.  
> Another difficulty is that “ThinkJulia” (…) is not a  
> registered package.

Precisely. It happened after a long effort of doing:

> 

julia\> import Pkg  
julia\> using Pkg  
julia\> Pkg.add(PackageSpec(url=“[GitHub - BenLauwens/ThinkJulia.jl: Port of the book Think Python to the Julia programming language](https://github.com/BenLauwens/ThinkJulia.jl)”))

> 

It didn’t work at the very beginning, maybe as you say because is not able of downloading and compiling some packages (crashed a lot building ImageMagick), however at the end returned the julia\> prompt. So I tried ‘julia\> using ThinkJulia’, and hung it.

Just wanted to know for a solution in this web page, if any.  
The package “ThinkJulia” works properly since I loaded using a notebook, (not without difficulties), of “jupyter-org”  
Works fine (though a little sluggish).

The question is just for learning to load it in the “julialang-org” site.  
So sorry for being too terse posing the question but the chat allows only two links to the newcomers, and I wrote lots of them in the first (discarded) draft.

> You better go with a local (or portable, search discourse) Julia installation.

Yes, at the end the better option. It is just I’m “tasting” the language for first time; nothing decided yet to use it like a real hobby or professional tool.

I appreciate the tips for emulators you wrote.
