Is your feature request related to a problem? Please describe.
We want to make calculation steps and similar from eurocode be printable/visible in notebooks with pretty printing.
Describe the solution you'd like
We add a module named "stepper". which has a factory method get to get a Stepper object.
For each step, a string is added. The string can also contain latex commands.
from eurocodedesign import stepper
with stepper.get() as st:
# do stuff
st.step(f"Steel section {section} has height {height} and width {width}.")
# do stuff
st.step(f"Because of {x}, {section} is of cross-section type {QK}.")
Output:
Steel section IPE320 has height 22 mm and width 12 mm. Because of height/width, IPE320 is of cross-section type QK3.
Describe alternatives you've considered
No other alterntives were thought of.
Later, the jupter notebooks should be transformable with https://quarto.org/docs/gallery/ to nice reports. Mainly pdf, but word or html are also possible.
Is your feature request related to a problem? Please describe. We want to make calculation steps and similar from eurocode be printable/visible in notebooks with pretty printing.
Describe the solution you'd like We add a module named "stepper". which has a factory method
get
to get aStepper
object. For each step, a string is added. The string can also contain latex commands.Output:
Steel section IPE320 has height 22 mm and width 12 mm. Because of height/width, IPE320 is of cross-section type QK3.
Describe alternatives you've considered No other alterntives were thought of.
Additional context
Stepper
will use__enter__
and__exit__
to be usable inwith
blocks. See https://stackoverflow.com/questions/1984325/explaining-pythons-enter-and-exitLater, the jupter notebooks should be transformable with https://quarto.org/docs/gallery/ to nice reports. Mainly pdf, but word or html are also possible.