From 912f82b4edeefe27060562a1f953735a014f5e25 Mon Sep 17 00:00:00 2001 From: rch <rostislav.chudoba@rwth-aachen.de> Date: Thu, 14 Apr 2022 11:37:47 +0200 Subject: [PATCH] lecture 2 --- environment.yml | 23 +++++------ index.ipynb | 20 +++++----- tour1_intro/1_2_jupyter_python.ipynb | 39 +++++++++++++++++++ .../2_2_1_PO_configuration_explorer.ipynb | 8 ++-- 4 files changed, 63 insertions(+), 27 deletions(-) diff --git a/environment.yml b/environment.yml index 7c5421c..36e2d4d 100644 --- a/environment.yml +++ b/environment.yml @@ -2,19 +2,16 @@ name: base channels: - conda-forge dependencies: -- traits # ==6.3.2 -- matplotlib # ==3.3.3 -- numpy # ==1.22.2 -- sympy # ==1.10.1 -- scipy # ==1.8.0 -- k3d # ==2.12.0 -- ipywidgets # ==7.6.5 -- ipympl # ==0.8.8 -# - ipyregulartable # ==0.2.0 -- ipytree # ==0.2.1 -#- pyface==7.3.0 -#- traitsui==7.1.0 -- importlib_resources # ==5.4.0 +- traits +- matplotlib +- numpy +- sympy +- scipy +- k3d +- ipywidgets +- ipympl +- ipytree +- importlib_resources - pip - pip: - bmcs-utils==0.0.31a0 diff --git a/index.ipynb b/index.ipynb index 5f7d05b..45c0659 100644 --- a/index.ipynb +++ b/index.ipynb @@ -106,14 +106,6 @@ "* Distinguish model verification, calibration, validation and parametric studies" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "<div style=\"background-color:lightgreen;text-align:left\"> <img src=\"icons/rest.png\" alt=\"Step by step\" width=\"40\" height=\"40\">\n", - " <b>Our current location</b> </div>" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -122,7 +114,7 @@ "## **Tour 1**: Introduction\n", "\n", "### 1.1 A roadmap through the BMCS landscape\n", - "Topics, structure and organization of the course with a teaser about the thin concrete shells made of textile-reinforced concrete and oricrete.\n", + "Topics, structure and organization of the course with a teaser about the thin concrete shells made of textile-reinforced concrete and oricrete.</br>\n", "[**Structure, method, teaser**](tour1_intro/1_1_roadmap.ipynb#top)\n", "\n", "### 1.2 Introduction to Jupyter Lab and Notebooks\n", @@ -131,7 +123,7 @@ "use the `jupyter` notebooks are summarized here:</br>\n", "[**Web Apps:** first steps](link)\n", " -->\n", - "[**Jupyter notebooks and Python**: short introduction](tour1_intro/1_2_jupyter_python.ipynb#top)\n", + "[**Jupyter notebooks and Python**: short introduction, installation instructions](tour1_intro/1_2_jupyter_python.ipynb#top)\n", "\n", "### 1.3 Interactive computational environment\n", "\n", @@ -139,6 +131,14 @@ "[**Mixture rule**: example elastic mixture rule](tour1_intro/1_3_elastic_stiffness_of_the_composite.ipynb#top)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "<div style=\"background-color:lightgreen;text-align:left\"> <img src=\"icons/rest.png\" alt=\"Step by step\" width=\"40\" height=\"40\">\n", + " <b>Our current location</b> </div>" + ] + }, { "cell_type": "markdown", "metadata": {}, diff --git a/tour1_intro/1_2_jupyter_python.ipynb b/tour1_intro/1_2_jupyter_python.ipynb index f61dabb..acc7a88 100644 --- a/tour1_intro/1_2_jupyter_python.ipynb +++ b/tour1_intro/1_2_jupyter_python.ipynb @@ -104,6 +104,45 @@ " \n" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Local standallone installation\n", + "\n", + "It is possible to install the environment of packages in a local environment in three steps\n", + "\n", + "### Install conda package manager \n", + " \n", + "It is possible to install both `anaconda` or `miniconda` bundle. While the former includes a standard set of packages for scientific computing, the latter serves as a skeleton for the creation of a preconfigured environment. Since the `bmcs` suite of packages comes \n", + "as a standalone environment, both `anaconda` and `miniconda` can be used. The installation instructions of `miniconda` are provided [here](https://docs.conda.io/en/latest/miniconda.html)\n", + "\n", + "### Configure the `bmcs_env` environment\n", + "\n", + " - Download the file [`environment.yml`](../environment.yml) in top-level directory of this package.\n", + " - Start a `miniconda` or `anaconda` prompt, navigate to the directory with the downloaded file and issue the command\n", + " \n", + " ```sh\n", + " $ conda env create -f environment.yml\n", + " ```\n", + " \n", + " This will start the installation process and download all `bmcs` suite packages and their depenendencies into your `base` environment. If you want to install the `bmcs_apps` in a separate environment, e.g. `bmcs_env`, use the `-n` option \n", + " \n", + " ```sh\n", + " $ conda env create -f environment.yml -n bmcs_env\n", + " ```\n", + " \n", + " Once the installation has been finished, make sure that you activated the right environment\n", + " \n", + " ```sh\n", + " $ conda activate bmcs_env\n", + " ```\n", + " \n", + "### Checkout the bmcs_app project from git.rwth-aachen.de\n", + "\n", + "Use the link `https://git.rwth-aachen.de/Rostislav.Chudoba/bmcs_apps.git` to clone the course material to your local directory.\n" + ] + }, { "cell_type": "markdown", "metadata": {}, diff --git a/tour2_constant_bond/2_2_1_PO_configuration_explorer.ipynb b/tour2_constant_bond/2_2_1_PO_configuration_explorer.ipynb index 69cc625..c1edee7 100644 --- a/tour2_constant_bond/2_2_1_PO_configuration_explorer.ipynb +++ b/tour2_constant_bond/2_2_1_PO_configuration_explorer.ipynb @@ -76,7 +76,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "85473108753e484bb62f0d55d0e9f16f", + "model_id": "1b365a0773714a45a2aba46c40a9f6f3", "version_major": 2, "version_minor": 0 }, @@ -129,7 +129,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "4f3bdf99569d433395c1cdad412cd659", + "model_id": "251c6cb437844a76b9a606ae819fa3a9", "version_major": 2, "version_minor": 0 }, @@ -176,7 +176,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "a7085cc64df14920836d2dec455a9508", + "model_id": "7100ebac65604642a1e3363b0cf2e04a", "version_major": 2, "version_minor": 0 }, @@ -223,7 +223,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "0a42593dc8df4bb5b463df53733167d1", + "model_id": "b87ec7832aa24db19b627bb2704369dc", "version_major": 2, "version_minor": 0 }, -- GitLab