'How can I handle "/n" when exporting an .ipynb as a LaTeX file?

Whenever I export a python notebook as a LaTeX file any new line characters ("\n") present in the notebook cells show up in the tex file and break it. When compiled LaTeX throws "unidentified control sequence". Is there a way to have this issue fixed automatically so I do not need to alter the .Tex file that comes out manually?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source