Skip to content

Commit

Permalink
fix: use shell to write .matplotlibrc
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Dec 21, 2024
1 parent 1bc85cf commit 8c9df6e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@ exec ddsim \
rule matplotlibrc:
output:
".matplotlibrc",
run:
with open(output[0], "wt") as fp:
fp.write("backend: Agg\n")
# interactive mode prevents plt.show() from blocking
fp.write("interactive : True\n")
shell:
"""
cat > {output} <<EOF
backend: Agg
# interactive mode prevents plt.show() from blocking
interactive: True
EOF
"""


rule org2py:
Expand Down

0 comments on commit 8c9df6e

Please sign in to comment.