Skip to content
Snippets Groups Projects
Commit cfd5ee31 authored by Rostislav Chudoba's avatar Rostislav Chudoba
Browse files

changed image to latest (jupyterlab 3)

parent cd6cd820
No related branches found
No related tags found
No related merge requests found
# Specify parent image. Please select a fixed tag here. # Specify parent image. Please select a fixed tag here.
ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses:2020-ss.1 # ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses:2020-ss.1
ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-minimal-2021-ss:latest
FROM ${BASE_IMAGE} FROM ${BASE_IMAGE}
# .. Or update conda base environment to match specifications in environment.yml # .. Or update conda base environment to match specifications in environment.yml
......
%% Cell type:code id:funky-illustration tags: %% Cell type:code id:million-hotel tags:
``` python ``` python
%matplotlib widget %matplotlib widget
``` ```
%% Cell type:code id:fresh-century tags: %% Cell type:code id:purple-japan tags:
``` python ``` python
from bmcs_cross_section.mkappa.mkappa import MKappa from bmcs_cross_section.mkappa.mkappa import MKappa
from bmcs_cross_section.cs_design import TShape, BarLayer, CrossSectionDesign from bmcs_cross_section.cs_design import TShape, BarLayer, CrossSectionDesign
from bmcs_cross_section.matmod import PWLConcreteMatMod, EC2ConcreteMatMod from bmcs_cross_section.matmod import PWLConcreteMatMod, EC2ConcreteMatMod
import numpy as np import numpy as np
import sympy as sp import sympy as sp
sp.init_printing() sp.init_printing()
``` ```
%% Cell type:code id:bigger-extent tags: %% Cell type:code id:secondary-kruger tags:
``` python ``` python
mc = MKappa(name='moment-curvature', low_kappa=-0.000014, high_kappa=0.00003) mc = MKappa(name='moment-curvature', low_kappa=-0.000014, high_kappa=0.00003)
``` ```
%% Cell type:code id:cutting-finnish tags: %% Cell type:code id:talented-catalog tags:
``` python ``` python
mc.matrix = 'piecewise linear' mc.matrix = 'piecewise linear'
css = mc.cross_section_shape = 'T-shape' css = mc.cross_section_shape = 'T-shape'
csl = mc.cross_section_layout csl = mc.cross_section_layout
bl1 = BarLayer(name='steel 1', z=10, ds=10, count=2 ) bl1 = BarLayer(name='steel 1', z=10, ds=10, count=2 )
bl2 = BarLayer(name='steel 2', z=30, ds=10, count=2 ) bl2 = BarLayer(name='steel 2', z=30, ds=10, count=2 )
csl.add_layer(bl1) csl.add_layer(bl1)
csl.add_layer(bl2) csl.add_layer(bl2)
#csl.update_observers() #csl.update_observers()
``` ```
%% Cell type:code id:champion-badge tags: %% Cell type:code id:informational-patrick tags:
``` python ``` python
mc.interact() mc.interact()
``` ```
%% Output %% Output
eta 0.3204545454545455 eta 0.3204545454545455
M - k recalculated M - k recalculated
%% Cell type:code id:difficult-retail tags: %% Cell type:code id:unauthorized-metallic tags:
``` python ``` python
``` ```
......
%% Cell type:code id:industrial-defendant tags: %% Cell type:code id:thick-postcard tags:
``` python ``` python
%matplotlib widget %matplotlib widget
from pmcm.api import PMCM from pmcm.api import PMCM
``` ```
%% Cell type:code id:typical-peripheral tags: %% Cell type:code id:affected-mother tags:
``` python ``` python
pmcm = PMCM() pmcm = PMCM()
``` ```
%% Cell type:code id:existing-omega tags: %% Cell type:code id:colored-clause tags:
``` python ``` python
pmcm.interact() pmcm.interact()
``` ```
%% Output %% Output
%% Cell type:code id:mighty-recipe tags: %% Cell type:code id:european-colombia tags:
``` python ``` python
from ipytree import Tree from ipytree import Tree
``` ```
%% Cell type:code id:eligible-bahamas tags: %% Cell type:code id:scientific-silly tags:
``` python ``` python
Tree() Tree()
``` ```
%% Output %% Output
%% Cell type:code id:amber-subdivision tags: %% Cell type:code id:lonely-dairy tags:
``` python ``` python
import ipyregulartable as rt import ipyregulartable as rt
``` ```
%% Cell type:code id:material-hotel tags: %% Cell type:code id:accessory-citizenship tags:
``` python ``` python
import numpy as np import numpy as np
``` ```
%% Cell type:code id:blocked-honduras tags: %% Cell type:code id:subsequent-watershed tags:
``` python ``` python
w = rt.RegularTableWidget(rt.NumpyDataModel(np.random.random((10,10))) ) w = rt.RegularTableWidget(rt.NumpyDataModel(np.random.random((10,10))) )
``` ```
%% Cell type:code id:executive-throat tags: %% Cell type:code id:several-holiday tags:
``` python ``` python
w w
``` ```
%% Output %% Output
%% Cell type:code id:rental-applicant tags: %% Cell type:code id:neural-lesson tags:
``` python ``` python
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment