# Downloading Jupyter notebook as jl script

**URL:** <https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850>\
**Category:** New to Julia\
**Tags:** question, jupyter, repl\
**Created:** [February 5, 2022, 7:44am UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850 "2022-02-05T07:44:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [February 5, 2022, 7:44am UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850/1 "2022-02-05T07:44:25Z")

</div>

I am facing converting ipynb files to jl script using `jupytext` as described here ~  
**[jupyter notebook - .ipynb Julia files to .jl files - Stack Overflow](https://stackoverflow.com/questions/66802023/ipynb-julia-files-to-jl-files)**

```julia
julia> jupytext --to jl "/home/rajarsi/Rosller.pp.ipynb"
ERROR: syntax: invalid operator "--"
Stacktrace:
 [1] top-level scope at REPL[1]:0

```

Could someone help diagnose the issue?

---

<div class="post-metadata">

**Author:** ![runjaj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/runjaj/32/23628_2.png) [@runjaj](https://discourse.julialang.org/u/runjaj)\
**Post date:** [February 5, 2022, 7:57am UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850/2 "2022-02-05T07:57:56Z")

</div>

I haven’t used jupytext, but I think that you have to run that command in your shell and not in julia REPL.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [February 5, 2022, 8:35am UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850/3 "2022-02-05T08:35:48Z")

</div>

you could also (a) download the notebook and then (b) use the `nbexport` from [https://github.com/stevengj/NBInclude.jl](https://github.com/stevengj/NBInclude.jl)

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [February 5, 2022, 1:24pm UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850/4 "2022-02-05T13:24:04Z")

</div>

Well it worked maybe! But the problem is the `.jl` file generated is not opening uo when I try to open it on `Pluto` ! IDK what went wrong!!

---

<div class="post-metadata">

**Author:** ![runjaj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/runjaj/32/23628_2.png) [@runjaj](https://discourse.julialang.org/u/runjaj)\
**Post date:** [February 5, 2022, 4:41pm UTC](https://discourse.julialang.org/t/downloading-jupyter-notebook-as-jl-script/75850/5 "2022-02-05T16:41:18Z")

</div>

If you want to open the notebook in Pluto, I think it would be better to use [Jupyter2Pluto.jl](https://github.com/vdayanand/Jupyter2Pluto.jl) instead of Jupytext.
