# Running myBinder with julia version 1.6

**URL:** <https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920>\
**Category:** Jupyter-Notebook\
**Tags:** question\
**Created:** [July 19, 2021, 10:57am UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920 "2021-07-19T10:57:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennibolm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennibolm/32/25707_2.png) [@bennibolm](https://discourse.julialang.org/u/bennibolm)\
**Post date:** [July 19, 2021, 10:57am UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/1 "2021-07-19T10:57:21Z")

</div>

Hi, I hope this is the right place to ask. Every time I want to start my `.ipynb` file with [mybinder](https://myBinder) there is no kernel for julia version 1.6.2 or 1.6.1.  
I can’t find any instructions on the binder website regarding the supported julia versions, but am I right when I suppose julia 1.6 is not compatible right now?  
I just started the binder feature for my repository, so I’m a little irritated that there is no support for a few months now.

---

<div class="post-metadata">

**Author:** ![ess3sq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ess3sq/32/26834_2.png) [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Post date:** [July 19, 2021, 12:20pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/2 "2021-07-19T12:20:59Z")

</div>

I’m not sure but it sounds strange that they don’t support Julia 1.6.x.  
Have you taken a look at this? [Binder Julia](https://mybinder.readthedocs.io/en/latest/howto/languages.html#julia)  
What’s your project setup?

---

<div class="post-metadata">

**Author:** ![bennibolm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennibolm/32/25707_2.png) [@bennibolm](https://discourse.julialang.org/u/bennibolm)\
**Post date:** [July 19, 2021, 12:54pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/3 "2021-07-19T12:54:27Z")

</div>

That’s exactly what I thought.  
I just looked at the [binder demo](https://mybinder.org/v2/gh/binder-examples/demo-julia/master?filepath=demo.ipynb) from [here](https://mybinder.readthedocs.io/en/latest/examples/sample_repos.html#julia-binder-demo), and they’re still using Julia 1.5.3.  
Yes, I had a look at it. If I’m getting it right, it is not that complicated. myBinder just needs a `Project.toml` in the root to identify Julia as the language.

I also tried to both 1.6 versions by changing the .ipynb file mannually, but it still says  
`Could not find a kernel matching Julia 1.6.2` or `1.6.1` respectively.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [July 19, 2021, 12:54pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/4 "2021-07-19T12:54:35Z")

</div>

Works fine for me.

This environment starts up in Julia 1.6.1: [https://github.com/mitmath/binder-env](https://github.com/mitmath/binder-env)

---

<div class="post-metadata">

**Author:** ![bennibolm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennibolm/32/25707_2.png) [@bennibolm](https://discourse.julialang.org/u/bennibolm)\
**Post date:** [July 19, 2021, 1:02pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/5 "2021-07-19T13:02:48Z")

</div>

I can open the repository as well. But when starting a .ipynb file I get the error from above.  
Did you try such a notebook file at your repo?

---

<div class="post-metadata">

**Author:** ![Fliks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fliks/32/2494_2.png) [@Fliks](https://discourse.julialang.org/u/Fliks)\
**Post date:** [July 19, 2021, 2:11pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/6 "2021-07-19T14:11:35Z")

</div>

Did you change the compat for the julia version in the Project.toml file?

I think you would need to add the following lines to the Project.toml in your repository:

```julia
[compat]
julia = "1.6"

```

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [July 19, 2021, 3:02pm UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/7 "2021-07-19T15:02:29Z")

</div>

> [@bennibolm](#):
>
> Did you try such a notebook file at your repo?

Yep. Works fine: launch binder, drag a 1.6.1 ipynb file to the Jupyter “home page” to upload it, and click on the notebook to lauch.

Feel free to clone [GitHub - mitmath/binder-env: Binder environments for MIT math courses](https://github.com/mitmath/binder-env) and modify it as needed (e.g. for the packages you require).

---

<div class="post-metadata">

**Author:** ![bennibolm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennibolm/32/25707_2.png) [@bennibolm](https://discourse.julialang.org/u/bennibolm)\
**Post date:** [July 21, 2021, 11:35am UTC](https://discourse.julialang.org/t/running-mybinder-with-julia-version-1-6/64920/8 "2021-07-21T11:35:58Z")

</div>

Thank you guys. I found my mistake.  
The CI pushes the notebook files automatically to my `gh-pages` branch, and there was no `Project.toml`. So mybinder didn’t even know about starting a Julia environment.  
I think I will just add another `toml` file to the branch.  
Thank you.
