This is a link to an ein notebook. It might not work if your setup is not the same as mine!
Note that code is executed asynchronously, so executing the following won’t block Emacs. You can even queue up a number of source code blocks and they will execute sequentially as the previous finishes execution!
import sys
import time
time.sleep(10)
print("Hello dood!")
1+4
Tracebacks will be printed out, but if you want to use ein’s traceback and
debugging support you have to jump to the *ein:shared-output*
buffer for
traceback support or the notebook running the session and execute %debug
in a
cell there.
1/0
ZeroDivisionErrorTraceback (most recent call last) <ipython-input-23-9e1622b385b6> in <module> ----> 1 1/0
ZeroDivisionError: division by zero
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
x = np.linspace(0, 1, 100)
y = np.random.rand(100,1)
plt.plot(x,y)
x
from sympy import *
init_printing()
x = symbols('x')
x
import numpy as np
np.zeros(18)