Browse Source

Fix notebook validation warning

Previously, Jupyter complained about an unexpected property for markdown
cells. So it is added for code cells only now.
pull/97/head
Jonas Schulze 6 years ago committed by Fredrik Ekre
parent
commit
6931ed43a3
  1. 2
      src/Literate.jl

2
src/Literate.jl

@ -514,9 +514,9 @@ function notebook(inputfile, outputdir; config::Dict=Dict(), kwargs...)
cell["cell_type"] = chunktype cell["cell_type"] = chunktype
cell["metadata"] = metadata cell["metadata"] = metadata
cell["source"] = lines cell["source"] = lines
cell["outputs"] = []
if chunktype == "code" if chunktype == "code"
cell["execution_count"] = nothing cell["execution_count"] = nothing
cell["outputs"] = []
end end
push!(cells, cell) push!(cells, cell)
end end

Loading…
Cancel
Save