From 78e7c2ad45baf0de27143eedc950faa07efaf3fe Mon Sep 17 00:00:00 2001 From: Jonas Schulze Date: Sat, 21 Mar 2020 19:23:05 +0100 Subject: [PATCH] Fix notebook validation warning Previously, Jupyter complained about an unexpected property for markdown cells. So it is added for code cells only now. --- src/Literate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Literate.jl b/src/Literate.jl index 94e3060..3f7ddf1 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -514,9 +514,9 @@ function notebook(inputfile, outputdir; config::Dict=Dict(), kwargs...) cell["cell_type"] = chunktype cell["metadata"] = metadata cell["source"] = lines - cell["outputs"] = [] if chunktype == "code" cell["execution_count"] = nothing + cell["outputs"] = [] end push!(cells, cell) end