CoCalc Public Filesanaconda.sagewsOpen with one click!
Author: Harald Schilly
Views : 77
Compute Environment: Ubuntu 18.04 (Deprecated)

Defining a3 as the anaconda3 Python environment

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

a3 = jupyter('anaconda3') %default_mode a3

import sys sys.executable
import numpy as np np
<module 'numpy' from '/projects/anaconda3/lib/python3.5/site-packages/numpy/'>
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
%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'>