.. include:: sub.txt ============================= OpenSeesPy in `DesignSafe`_ ============================= Follow steps below to run OpenSeesPy in `DesignSafe`_. .. tip:: * Go To `DesignSafe`_ website and click register .. image:: /_static/designsafe.png .. tip:: * Register an account for free and log in .. image:: /_static/register.png .. tip:: * Land on your own portal and go to workspace .. image:: /_static/portal.png .. tip:: * In your workspace, select ``Jupyter``, launch it, and start my server .. image:: /_static/startjupyter.png .. tip:: * Now you should be in the ``Jupyter`` Notebook * Go to ``mydata`` and alwasy save your data under this folder .. image:: /_static/jupyterhome.png .. tip:: * In the ``mydata`` folder, select ``New`` and then ``Python 3`` .. image:: /_static/notebook.png .. tip:: * The OpenSeesPy version on DesignSafe is not the latest. * To update to the latest and import: .. image:: /_static/jupyter-designsafe.png .. tip:: * Now you can write OpenSeesPy script in ``Jupyter`` Notebook, run the script, and show results * To show figure in the Notebook, you should include ``%matplotlib inline`` at the beginning .. image:: /_static/openseespy.png