# From Zero to Jupyter-lab on Linux for Julians?

**URL:** <https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762>\
**Category:** General Usage\
**Tags:** jupyter\
**Created:** [July 16, 2021, 5:12pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762 "2021-07-16T17:12:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [July 16, 2021, 5:12pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/1 "2021-07-16T17:12:49Z")

</div>

I have a new computer since the last time I used Jupyter-lab. I use Jupyter-lab just for Julia, and so have no need for python stuff other than as infrastructure for things like Jupyter.

I installed IJulia.jl and Conda.jl on the new computer, and tried

```julia
using IJulia
julia> notebook()
[ Info: running `/home/dlakelan/.local/bin/jupyter notebook`
Process(setenv(`/home/dlakelan/.local/bin/jupyter notebook`; dir="/home/dlakelan"), ProcessExited(1))

```

Evidently something in my home directory is telling IJulia that it should use some old install location of jupyter that is no longer there or no longer a valid install. How can I get IJulia to start from scratch and use Conda.jl to build the stand-alone version?

Also does the stand-alone version work with lab?

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [July 16, 2021, 7:17pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/2 "2021-07-16T19:17:43Z")

</div>

Well I never figured out how to make Conda.jl do its thing, but I did wind up installing miniconda3 and then julialab according to instructions online. All I can say is I pity the fools that put up with that stuff in python… The whole install process took literally over an hour and in the end miniconda decided it was just ok for it to go ahead and CHANGE MY BASH PROMPT which made me just about lose my cuckoo and the fix is documented here: [python - Anaconda: disable prompt change - Stack Overflow](https://stackoverflow.com/questions/36499220/anaconda-disable-prompt-change) and as someone said there

> " This is deeply worrying. If anaconda thinks it has the right to edit `.bash_profile` in a way which changes the prompt, what else does it (mistakenly) think it has the right to do? Turns out, it also adds to the beginning of `PATH` so that, for example, `curl` is redefined. Ouch! I’m treating this as malware. – [Adam Chalcraft](https://stackoverflow.com/users/3380373/adam-chalcraft)"

Thank you Julia devs for getting package management pretty much right!

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [July 16, 2021, 8:26pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/3 "2021-07-16T20:26:05Z")

</div>

Am still hoping someone will answer the question of how to force IJulia/Conda.jl to treat the whole install as if it were a “first time” install, as described in the [README](https://github.com/JuliaLang/IJulia.jl)

> The first time you run `notebook()` , it will prompt you for whether it should install Jupyter. Hit enter to have it use the [Conda.jl](https://github.com/Luthaf/Conda.jl) package to install a minimal Python+Jupyter distribution (via [Miniconda](http://conda.pydata.org/docs/install/quick.html)) that is private to Julia (not in your `PATH` ).

Will mark that as the answer if someone figures it out 😉

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 16, 2021, 8:31pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/4 "2021-07-16T20:31:44Z")

</div>

On my phone so can’t check but I think there’s an ENV variable called PYTHON you should be able to set to an empty string, then build Ijulia again

---

<div class="post-metadata">

**Author:** ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Post date:** [July 16, 2021, 10:17pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/5 "2021-07-16T22:17:35Z")

</div>

Have you tried

```julia
] build IJulia

```

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [July 16, 2021, 10:18pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/6 "2021-07-16T22:18:06Z")

</div>

I did, twice…  
Will try out that ENV var thing.

Note: the home directory is the same as before on my older computer, so evidently there’s some stuff in my home directory that makes IJulia think it’s already set up to work with the older install.

At this point, having done the whole conda thing, it’s probably best if I just leave it alone and don’t touch things that aren’t actually broken (yet) 😉 It is in fact running the conda based install.

---

<div class="post-metadata">

**Author:** ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Post date:** [July 16, 2021, 10:26pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/7 "2021-07-16T22:26:54Z")

</div>

From the manual

"  
You can try setting ENV[“JUPYTER”]=“”; Pkg.build(“IJulia”) to force IJulia to go back to its own Conda-based Jupyter version (if you previously tried a different jupyter)  
"

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [July 16, 2021, 10:27pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/8 "2021-07-16T22:27:50Z")

</div>

Perfect. Who would have thought to RTFM 🤣

---

<div class="post-metadata">

**Author:** ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Post date:** [July 16, 2021, 10:31pm UTC](https://discourse.julialang.org/t/from-zero-to-jupyter-lab-on-linux-for-julians/64762/9 "2021-07-16T22:31:58Z")

</div>

😆 to be fair it’s on the very last page. I just remembered looking this up once before. Recently `build` has always worked but I might have installed Anaconda first in those computers.
