Skip to content

Commit 2587b1c

Browse files
authored
Merge pull request #314 from pllab/jupyter-update
Fix textual netlist output in jupyter notebooks
2 parents 300a776 + 9b527bf commit 2587b1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrtl/helperfuncs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,10 @@ def _currently_in_jupyter_notebook():
698698
def _print_netlist_latex(netlist):
699699
""" Print each net in netlist in a Latex array """
700700
from IPython.display import display, Latex # pylint: disable=import-error
701-
out = r'\n\\begin{array}{ \| c \| c \| l \| }\n'
702-
out += r'\n\hline\n'
703-
out += r'\\hline\n'.join(str(n) for n in netlist)
704-
out += r'\hline\n\\end{array}\n'
701+
out = '\n\\begin{array}{ \\| c \\| c \\| l \\| }\n'
702+
out += '\n\\hline\n'
703+
out += '\\hline\n'.join(str(n) for n in netlist)
704+
out += '\\hline\n\\end{array}\n'
705705
display(Latex(out))
706706

707707

0 commit comments

Comments
 (0)