You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like an indent at the end of a code chunk interferes with the splitting of cells in the resulting notebook. MWE:
In "test.jl":
# Some text
a1 = [1 10 2 20; 3 30 0 0]
#- this works to split
a2 = [1 10 2 20;
3 30 0 0]
#- this doesn't
a2 = [1 10 2 20;
3 30 0 0]
a2
#- This does
println("What?")
julia> Literate.notebook("test.jl", "./")
[ Info: generating notebook from `~/computation/julia_playground/intro_julia/test.jl`
[ Info: not running on Travis, skipping links will not be correct.
[ Info: executing notebook `test.ipynb`
[ Info: writing result to `~/computation/julia_playground/intro_julia/test.ipynb`
The text was updated successfully, but these errors were encountered:
Maybe an explicit #- like here should not be allowed to be overridden.
This makes a lot of sense to me as a heuristic. If someone uses this to manually split a code chunk, there's a good chance that there's a reason for it.
That said, the ability to continue code after a chunk seems like a niche but very cool use case. If it's easier - perhaps disable it by default and allow an option to get that behavior where needed (with the understanding that it will break cases like this).
It looks like an indent at the end of a code chunk interferes with the splitting of cells in the resulting notebook. MWE:
In "test.jl":
The text was updated successfully, but these errors were encountered: