Closed sporksmith closed 2 years ago
It'd be nice to fix this, but I found a workaround, using ansi2txt
:
jupyter nbconvert notebook.ipynb --execute --to markdown --stdout | ansi2txt > notebook.md
Maybe a separate issue, but on the topic of markdown-export, it's a little bit difficult to visually distinguish the cell contents and cell output when the resulting Markdown is converted to html. I hacked up an awk script to add a $
"prompt" to the cell lines so that they stand out a little more:
/^```bash/ { prefix=1; print $0; next; }
/^```$/ { prefix=0; print $0; next; }
{
if ( prefix==1 )
print "$ " $0
else
print $0
}
I've recently taken on co-maintaining bash_kernel
, and I'm currently closing all old/stale issues.
I'm closing this issue as it should have been solved in version 0.8 with PR #120. Please test with the latest bash_kernel
, and reopen if you need further help.
Example: https://github.com/sporksmith/dev-journal/blob/60778d5273504900051fdff4ba99f8daa9c54c35/interposing-fwrite/README.md
e.g.
vs what I see in the jupyter gui or html export:
I tried adding the line
export TERM=xterm-mono
to one of the affected cells, but it doesn't seem to have any effect.Any ideas?