Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Views: 207

Defining a3 as the anaconda3 Python environment

... and setting it as the default for all cells

a3 = jupyter('anaconda3') %default_mode a3
[removed]
import sys sys.executable
'/projects/anaconda3/bin/python3'
import numpy as np np
<module 'numpy' from '/projects/anaconda3/lib/python3.5/site-packages/numpy/__init__.py'>
import matplotlib.pyplot as plt plt.plot([1,2,3,2])
[<matplotlib.lines.Line2D at 0x7fbd54f0e4a8>]
︠80d59cff-42ea-4d9e-8677-c784b46cfca5i︠ %md ### Some `%sage` cells

Some %sage cells

%sage import sys sys.executable
'/projects/sage/sage-7.3/local/bin/python'
%sage graphs.PoussinGraph()
Poussin Graph: Graph on 15 vertices
%sage import numpy as np np
<module 'numpy' from '/projects/sage/sage-7.3/local/lib/python2.7/site-packages/numpy/__init__.pyc'>