Is there a way to make PythonTEX compile as of today in Overleaf V2 ?
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{pythontex}
\begin{document}
\begin{pyverbatim}
def calc_ellipticity(theta, delta):
theta = np.deg2rad(theta)
psi = np.arcsin(np.sin(2*theta) * np.sin(delta))/2
return np.tan(psi)
\end{pyverbatim}
\end{document}
Compiling gives : ? PythonTEX ?
Best Answer
(Tom from Overleaf support here.)
Unforunately, the
pythontex
package is not currently supported on Overleaf v2. This is because of a change to the security model in Overleaf v2 (as opposed to v1).See also https://www.overleaf.com/learn/how-to/Overleaf_v2_FAQ