CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2016-07-20-182434-magic.sagewsOpen in CoCalc

Examples for support purposes...

print(jupyter.available_kernels())
Available kernels: sagemath /projects/sage/sage-6.10/local/share/jupyter/kernels/sagemath anaconda3 /usr/local/share/jupyter/kernels/anaconda3 bash /usr/local/share/jupyter/kernels/bash ir /usr/local/share/jupyter/kernels/ir julia /usr/local/share/jupyter/kernels/julia octave /usr/local/share/jupyter/kernels/octave python2 /usr/local/share/jupyter/kernels/python2 python2-ubuntu /usr/local/share/jupyter/kernels/python2-ubuntu python3 /usr/local/share/jupyter/kernels/python3 sage-develop /usr/local/share/jupyter/kernels/sage-develop spark-anaconda /usr/local/share/jupyter/kernels/spark-anaconda spark-sagemath /usr/local/share/jupyter/kernels/spark-sagemath
%magics
laksjflajsdf
%auto %axiom %capture %coffeescript %command %cython %default %default_mode %exercise %file %fork %fortran %fricas %gap %gap3 %giac %go %gp %hide %hideall %html %javascript %julia %kash %lie %lisp %load %macaulay2 %magics %magma %maple %mathematica %matlab %maxima %md %mupad %mwrank %octave %pandoc %perl %prun %python %r %reset %ruby %runfile %sage0 %scilab %script %sh %singular %time %timeit %typeset_mode %var %wiki
print('\n'.join(magics()))
%auto %axiom %capture %coffeescript %command %cython %default %default_mode %exercise %file %fork %fortran %fricas %gap %gap3 %giac %go %gp %hide %hideall %html %javascript %julia %kash %lie %lisp %load %macaulay2 %magics %magma %maple %mathematica %matlab %maxima %md %mupad %mwrank %octave %pandoc %perl %prun %python %r %reset %ruby %runfile %sage0 %scilab %script %sh %singular %time %timeit %typeset_mode %var %wiki

magics()
['%auto', '%axiom', '%capture', '%coffeescript', '%command', '%cython', '%default', '%default_mode', '%exercise', '%file', '%fork', '%fortran', '%fricas', '%gap', '%gap3', '%giac', '%go', '%gp', '%hide', '%hideall', '%html', '%javascript', '%julia', '%kash', '%lie', '%lisp', '%load', '%macaulay2', '%magics', '%magma', '%maple', '%mathematica', '%matlab', '%maxima', '%md', '%mupad', '%mwrank', '%octave', '%pandoc', '%perl', '%prun', '%python', '%r', '%reset', '%ruby', '%runfile', '%sage0', '%scilab', '%script', '%sh', '%singular', '%time', '%timeit', '%typeset_mode', '%var', '%wiki']
%magics
%auto %axiom %capture %coffeescript %command %cython %default %default_mode %exercise %file %fork %fortran %fricas %gap %gap3 %giac %go %gp %hide %hideall %html %javascript %julia %kash %lie %lisp %load %macaulay2 %magics %magma %maple %mathematica %matlab %maxima %md %mupad %mwrank %octave %pandoc %perl %prun %python %r %reset %ruby %runfile %sage0 %scilab %script %sh %singular %time %timeit %typeset_mode %var %wiki
modes
Error in lines 1-1 Traceback (most recent call last): File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 948, in execute sys.stdout.flush() File "", line 1, in <module> NameError: name 'modes' is not defined