︠ff118909-c98d-4760-b024-0ac1640892cdi︠ %md Related to https://github.com/sagemathinc/smc/issues/234 ︡e7be00d7-a412-4dde-83e1-c95870d9f77e︡{"done":true,"md":"Related to https://github.com/sagemathinc/smc/issues/234"} ︠630d1d02-f515-45fd-b410-f2896b0ec81bs︠ r2 = jupyter('ir') ︡a19c936b-fe17-42cc-9cad-8a42dabcccfe︡{"html":"\n\n
\n\n\n\n\n\n\n\n"}︡{"done":true}︡ ︠5eb3a64e-ef21-49d1-bbad-9cc15eb57c7as︠ %r2 plot(rnorm(100)) ︡ae5908fe-ba50-4de2-85f2-b0bfca16b707︡{"file":{"filename":"/tmp/tmpUCauQO.png","show":true,"text":null,"uuid":"19a539b5-9f8e-47df-ac10-2c17d5cf001e"},"once":false}︡{"done":true}︡ ︠7f6541b5-7567-4506-a72e-66fa175bf099s︠ %r2 plot(rnorm(100)) plot(rnorm(100)) jpeg(width=300) plot(rnorm(100)) pdf() plot(rnorm(100)) plot(rnorm(100)) cairo_pdf(onefile=FALSE) plot(rnorm(100)) plot(rnorm(100)) svg(filename="Custom.svg") plot(rnorm(100)) ︡aa3b1521-52cd-40c7-9976-04ad963463e9︡{"file":{"filename":"/tmp/tmpB2sT4e.png","show":true,"text":null,"uuid":"c24ce594-1906-4f78-b0cf-a7883f2253f6"},"once":false}︡{"file":{"filename":"/tmp/tmpQYFnJQ.png","show":true,"text":null,"uuid":"a9fde130-a8db-43ab-a958-716429ee8110"},"once":false}︡{"done":true}︡ ︠028b8f5a-2922-47ad-a871-7df7c932f2f4s︠ jupyter? ︡71330ae3-87b7-4d0e-9232-4f91d10e1151︡{"code":{"filename":null,"lineno":-1,"mode":"text/x-rst","source":"File: /projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_jupyter.py\nSignature : jupyter(**kwds)\nDocstring :\nUse the jupyter command to use any Jupyter kernel that you have\ninstalled using from your SageMathCloud worksheet\n\n py3 = jupyter(\"python3\")\n\nAfter that, begin a sagews cell with %py3 to send statements to the\nPython3 kernel that you just created:\n\n %py3\n print(42)\n\nYou can even draw graphics.\n\n %py3\n import numpy as np; import pylab as plt\n x = np.linspace(0, 3*np.pi, 500)\n plt.plot(x, np.sin(x**2))\n plt.show()\n\nYou can set the default mode for all cells in the worksheet. After\nputting the following in a cell, click the \"restart\" button, and\nyou have an anaconda worksheet.\n\n %auto\n anaconda3 = jupyter('anaconda3')\n %default_mode anaconda3\n\nEach call to jupyter creates its own Jupyter kernel. So you can\nhave more than one instance of the same kernel type in the same\nworksheet session.\n\n p1 = jupyter('python3')\n p2 = jupyter('python3')\n p1('a = 5')\n p2('a = 10')\n p1('print(a)') # prints 5\n p2('print(a)') # prints 10\n\nFor details on supported features and known issues, see the SMC\nWiki page: https://github.com/sagemathinc/smc/wiki/sagejupyter\n\nAvailable kernels:\n\nsagemath /projects/sage/sage-7.3/local/share/jupyter/kernels/sagemath\nanaconda3 /usr/local/share/jupyter/kernels/anaconda3\nbash /usr/local/share/jupyter/kernels/bash\nir /usr/local/share/jupyter/kernels/ir\njulia /usr/local/share/jupyter/kernels/julia\noctave /usr/local/share/jupyter/kernels/octave\npython2 /usr/local/share/jupyter/kernels/python2\npython2-ubuntu /usr/local/share/jupyter/kernels/python2-ubuntu\npython3 /usr/local/share/jupyter/kernels/python3\nsage-develop /usr/local/share/jupyter/kernels/sage-develop\nspark-anaconda /usr/local/share/jupyter/kernels/spark-anaconda\nspark-sagemath /usr/local/share/jupyter/kernels/spark-sagemath"}}︡{"done":true}︡ ︠858ea29d-b1a9-4a7e-8cdb-da66f1590517︠