# Can I make IPython notebook from PythonTeX ?

Let's example like this :

\begin{ipythonconsole}
1+1
\end{ipythonconsole}


then I will get the result like this :

In[1]  : 1+1
Out[1] : 2


2. Can PythonTeX's pyconsole environment (or an equivalent) use IPython instead of plain Python? Not currently, but adding support would probably be relatively simple. The pyconsole environment uses Python's code module to emulate an interactive interpreter. Adding support for IPython would involve using IPython's equivalent of the code module. I am not familiar with the IPython internals, but if you or someone else wants to track down the comparable IPython functions, then I would be happy to try to add IPython console support.