Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook() ignores outputdir? #238

Open
SimonHansul opened this issue Feb 22, 2024 · 0 comments
Open

notebook() ignores outputdir? #238

SimonHansul opened this issue Feb 22, 2024 · 0 comments

Comments

@SimonHansul
Copy link

I try to have a script convert itself into a notebook (without execution), but save it to a parallel directory.
However, no matter what I pass on as outputdir, the notebook is always saved directly to the working directory.

Executing

using Literate
Literate.notebook(@__FILE__, execute = false, outputdir = "notebooks")

results in:

[ Info: generating notebook from `C:\Users\...\MyProject\scripts\literatetest.jl`
[ Info: writing result to `C:\Users\...\MyProject\literatetest.ipynb`
"C:\\Users\\...\\MyProject\\literatetest.ipynb"

Literate.notebook(@__FILE__, execute = false, outputdir = joinpath(pwd(), "notebooks")) does the same.

The problem also persists if I move the file directly into the working directory, or itry to convert a different script to notebook (or from the REPL), or omit the execute kwarg.

Am I doing something wrong? Any help would be appreciated, finding this package extremely useful!

Working on Julia Version 1.10.1, Literate v2.16.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant