Theoretical Mechanics IPSP

Jürgen Vollmer, Universität Leipzig

User Tools

Site Tools


sage:howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sage:howto [2020/11/20 10:40] jvsage:howto [2020/11/28 19:36] (current) – ↷ Links adapted because of a move operation jv
Line 1: Line 1:
-====== Instructions for Working with Sage-Notebooks ======+====== Getting started with Sage ======
  
 ===== Install SageMath ===== ===== Install SageMath =====
Line 5: Line 5:
    * goto [[https://www.sagemath.org]]    * goto [[https://www.sagemath.org]]
    * click on  **Download 9.2** icon    * click on  **Download 9.2** icon
-   * follow the instructions +   * follow the instructions \\ beware the package is huge and installation will (potentially) take quite a while 
-   * start Sage Notebook server +   * start Jupyter Notebook server for Sage
-     * **Windows**: open program  **SageMath XX Notebook** +
-     * **Linux**:  open a bash shell and run the command  +
  
-      sage --notebook=jupyter+**Windows**: open program   
 +       SageMath XX Notebook 
 +  
 +**Linux**:  open a shell and run the command  
  
 +      sage --notebook=jupyter
  
 +   * look for the Jupyter page in your browser. \\ It should look like the window shown in //Step 2// of the following instruction for downloading and opening the Sage Notebooks that we are providing in this wiki.
  
 ===== Download and start Notebooks ===== ===== Download and start Notebooks =====
Line 21: Line 24:
 and store the file on your computer: and store the file on your computer:
  
-{{ :sage:download.png?direct&600 |}}+{{ sage:howto:download.png?direct&600 |}}
  
  
Line 27: Line 30:
  
 Open Jupyter on your computer and click upload: Open Jupyter on your computer and click upload:
-{{ :sage:upload.png?direct&600 |}}+{{ sage:howto:upload.png?direct&600 |}}
  
  
Line 33: Line 36:
  
 navigate to the file on your hard drive and select for upload: navigate to the file on your hard drive and select for upload:
-{{ :sage:upload2.png?direct&600 |}}+{{ sage:howto:upload2.png?direct&600 |}}
  
  
Line 39: Line 42:
  
 select file by left click: select file by left click:
-{{ :sage:open.png?direct&600 |}}+{{ sage:howto:open.png?direct&600 |}}
  
  
Line 45: Line 48:
  
 open the Sage-notebook in a new tab of your browser: open the Sage-notebook in a new tab of your browser:
-{{ :sage:run.png?direct&600 |}}+{{ sage:howto:run.png?direct&600 |}}
  
  
Line 52: Line 55:
 clicking "run" will run the selected cell.  clicking "run" will run the selected cell. 
 Here, the vectors M and D will be defined that specify the position of the reflector: Here, the vectors M and D will be defined that specify the position of the reflector:
-{{ :sage:run2.png?direct&600 |}}+{{ sage:howto:run2.png?direct&600 |}}
  
 You can copy parts of a cell into a new cell and run them, You can copy parts of a cell into a new cell and run them,
 or modify them and see what happens when you run them... or modify them and see what happens when you run them...
  
-Have a look at these [[https://wiki.sagemath.org/interact/graphics|examples on the Sage server]] 
-and at the solutions of representative problems [[sage:mechanik|on the present Wiki]]. 
  
 +===== Next Steps =====
 +
 +==== Check out example notebooks ====
 +
 +   * solutions of representative problems [[sage:mechanics-workshop|on the present Wiki]]
 +   * take the [[https://www.sagemath.org/calctut/|Sage Calculus Tutorial]]
 +   * examples of [[https://wiki.sagemath.org/interact/graphics|graphics interactions on the Sage server]]
 +   * examples of [[https://wiki.sagemath.org/art?action=show&redirect=plot|animations on the SageMath wiki]]
 +
 +==== Browse through help pages and tutorials ====
 +
 +  * [[https://doc.sagemath.org/html/en/tutorial/index.html|Sage Tutorial]]
 +  * [[https://www.sagemath.org/tour.html|Sage Feature Tour]]
 +  * documentation on [[https://jupyter-notebook.readthedocs.io/en/latest/notebook.html|Sage Jupyter Notebooks]]
 +
 +==== Get the Sage Book ====
  
 +  * the [[http://sagebook.gforge.inria.fr/english.html|Sage book]] is available for free in [[http://dl.lateralis.org/public/sagebook/sagebook-ba6596d.pdf|English]], [[http://www.loria.fr/~zimmerma/sagebook/CalculDeutsch.pdf|German]], and [[http://dl.lateralis.org/public/sagebook/sagebook-web-20130530.pdf|French]].
  
 Let us know if this description works for you,  Let us know if this description works for you, 
-and if now - where you encountered problems.+and  —  if not  —  where you encountered problems.
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
sage/howto.1605865207.txt.gz · Last modified: 2020/11/20 10:40 by jv