-
I'm working on custom Python script to manage my markdown slides, this script includes exporting single slides with Marp, in which case it shows the corresponding info and warning messages, and I don't have any problem with this behavior on this specific section. My problem is that I also implemented a batch exporting, and decided to include a progress bar to show... well the progress, but as the info and warning messages appear they conflict with the progress bar and make it reappear instead of being updated as a single bar. I hope I have explained myself, anyway, I guess an image is better than thousand words. If there was a way to hide those messages, I think my interface could behave as expected. The current line that I'm calling in this section of my script is the following: os.system(f"marp {SOURCE_DIR}/{slide}.md --output {DIST_DIR}/{slide}.pdf --allow-local-files --pdf-outlines --pdf-outlines.pages=false --pdf-notes") I know there is also an option to user Thanks in advanced. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can simply suppress the Marp CLI logs that are being output to stderr. Example in the shell: marp foobar.md 2>/dev/null I'm not familiar with Python, so providing a clear solution for your use case is difficult for me. |
Beta Was this translation helpful? Give feedback.
You can simply suppress the Marp CLI logs that are being output to stderr. Example in the shell:
marp foobar.md 2>/dev/null
I'm not familiar with Python, so providing a clear solution for your use case is difficult for me.