# What is command to convert a jl file to an ipynb file using Literate.jl

**URL:** <https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [March 23, 2021, 12:35pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780 "2021-03-23T12:35:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbacelar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sbacelar/32/4359_2.png) [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Post date:** [March 23, 2021, 12:35pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/1 "2021-03-23T12:35:42Z")

</div>

Sorry, I can’t find anywhere the command to convert a `file.jl` into a `file.ipynb` using Literate.jl.  
How is it done?

---

<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:** [March 23, 2021, 1:02pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/2 "2021-03-23T13:02:46Z")

</div>

> [@sbacelar](#):
>
> I can’t find anywhere the command to convert a `file.jl` into a `file.ipynb` using Literate.jl

Did you see the [documentation](https://fredrikekre.github.io/Literate.jl/v2/)? If you did, and still weren’t able to figure out it I would be happy to hear your feedback so that it can be improved.

> [@sbacelar](#):
>
> How is it done?

You use [`Literate.notebook`](https://fredrikekre.github.io/Literate.jl/v2/outputformats/#Notebook-Output) like this:

```julia
using Literate
Literate.notebook("inputfile.jl")

```

which will create a file `inputfile.ipynb` in the same directory.

---

<div class="post-metadata">

**Author:** ![sbacelar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sbacelar/32/4359_2.png) [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Post date:** [March 23, 2021, 4:31pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/3 "2021-03-23T16:31:39Z")

</div>

Yes, I read the documentation but I couldn’t find the command. Now I re-read it and I think it is in the `output format` section of the documentation. But I think it is not as clear as your example. Thank you.

---

<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:** [March 23, 2021, 9:07pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/4 "2021-03-23T21:07:21Z")

</div>

Ok, thanks. Perhaps there should be a “Getting started” section or something.

---

<div class="post-metadata">

**Author:** ![sbacelar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sbacelar/32/4359_2.png) [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Post date:** [March 23, 2021, 9:14pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/5 "2021-03-23T21:14:27Z")

</div>

Yes. I have the same opinion.

---

<div class="post-metadata">

**Author:** ![greatpet](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Post date:** [February 19, 2022, 8:12pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/6 "2022-02-19T20:12:11Z")

</div>

I want to convert .jl file to a .ipynb file but I don’t want the cells of the notebook to be evaluated during the process (because the code takes a long time to run). What should I do? Should I set the `postprocess` keyword argument to some “do nothing” function?

---

<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:** [February 19, 2022, 9:11pm UTC](https://discourse.julialang.org/t/what-is-command-to-convert-a-jl-file-to-an-ipynb-file-using-literate-jl/57780/7 "2022-02-19T21:11:07Z")

</div>

No, you pass `execute = false`, see the manual section on [Configuration](https://fredrikekre.github.io/Literate.jl/v2/outputformats/#Literate.DEFAULT_CONFIGURATION).
