# Using Literate.jl in reverse: convert Jupyter to script

**URL:** <https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851>\
**Category:** General Usage\
**Tags:** question, documentation\
**Created:** [May 28, 2024, 3:28pm UTC](https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851 "2024-05-28T15:28:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [May 28, 2024, 3:28pm UTC](https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851/1 "2024-05-28T15:28:05Z")

</div>

I thought that this existed, but when checking current Literate.jl docs, I didn’t find any function to go **from** a Jupyter notebook to Julia script that would generate said notebook.

Have I missed something or is this not possible?

---

<div class="post-metadata">

**Author:** ![tobydriscoll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobydriscoll/32/1843_2.png) [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Post date:** [May 28, 2024, 3:55pm UTC](https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851/2 "2024-05-28T15:55:27Z")

</div>

Look into jupytext. It’s Python based but does well at converting into and out of notebooks. There’s also nbconvert, which I have less experience with.

---

<div class="post-metadata">

**Author:** ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Post date:** [May 28, 2024, 4:51pm UTC](https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851/3 "2024-05-28T16:51:39Z")

</div>

See also Jupyter2Pluto.jl

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [May 28, 2024, 5:54pm UTC](https://discourse.julialang.org/t/using-literate-jl-in-reverse-convert-jupyter-to-script/114851/4 "2024-05-28T17:54:37Z")

</div>

> <https://github.com/fredrikekre/Literate.jl/issues/106>
>
> Just so this (from Julia Discourse) does not get lost: have you considered addin…g an \`unliterate()\`?
