Replaced mathcad, I can't afford its price. Thanks! I wanna mask some value when converting units, cz it will not give the final units I wanted. I am doing X=X.to("units") to convert the units, but it gives me an extra X=YY。Could you please tell me how to mask this extra line?
Hi Connor! Thank you for this resource. I noticed your latex outputs are aligned left, instead of aligned centered. What should I change in "set_option()" to align text left as you have it? handcalcs.set_option("math_environment_start", "aligned" ) handcalcs.set_option("math_environment_end", "aligned" )
I am a student doing my final year project for tunnel analysis visualization and generating defects reports by editing python codes. I have always been so tired of doing manual calculations for my school work. I seriously need to learn programming to work more efficiently. Thanks a lot for inspiration.
Thanks a lot Connor, i admire your work, this library its extremely useful, i've been working with it and i've found an issue i would like to ask you about: I've modified the structural environment trying to include some new units as kgf, kgf/m and kgf/m2 because, unfortunately, this units are commonly used in my daily calculations, my aproach has been this: "kgf": { "Dimension": [1,1,-2,0,0,0,0], "Factor": "0.10197", "Symbol": "kgf"}, "kgf_m": { "Dimension": [1,0,-2,0,0,0,0], "Factor": "0.101971", "Symbol": "kgf/m"}, "kgf_m2": { "Dimension": [1,-1,-2,0,0,0,0], "Factor": "0.1019716", "Symbol": "kgf/m²"}, However, i've found that sometimes the .to("kgf") or .to("kgf_m") or .to("kgf_m2") method works correctly, but sometimes it's stops working and returns to the default SI units (N, N/m, N/m2), i know i'm doing something wrong in the deffinition of the environment but i've been unable to solve it. Thanks in advance for your answer!!!
This is unbelievably powerful! Thank you so much! Is there a way of overwriting the units that are rendered? For example, I want 100 Pa shown as 0.1 kPa
I was not put in context. Not knowing where the files are you working on and so forth. But I am sure this is interesting for someone who know CTI file for example. For me was no clue where did you start.
Hi, nice content, is there any libraries of python that can help with details in dwg or IFC format? For example, draw a beam with reinforcement and export it to dwg. thanks
I haven't tried it yet but is there something special about the %%render magic that causes printing to html not to display input cells? Or does Jupyter turn off input cells anytime you print html?
hi connor, Great Video! Thanks. I am stuck in the last part where you export just the output [56]. My jupyterlab throws the error "No module named 'handcalcs.install_templates'" installed. can you please help with this, Thanks.
Hi Connor When I run the cell symbolic equations are not displayed. I only get the results (e.g. c=0.6). Is there something missing in the installation?
Of course you can learn “everything”! Learning “everything” comes with time. However, you are right, learning literally everything is something no one can achieve. I heard that the creator of Python rates his own knowledge of Python as 8/10. That said, the first thing I always teach is writing functions. This gives your code structure. Try writing some simple calculation functions based on what you are learning in school. Then, naturally, you will be interested in learning how to make your functions do more things (like looping and making decisions with if/elif/else) and you will learn this easily. Focus on writing functions. The output of one function can be the input of another. One function can can have the sole purpose of calling all your other functions. Good luck!
Great video but I am getting Name error while inserting dimensions like L=10m, P=10KN/m**2 like names m , K M/**2 showing like are not defined. Please, assist me.
Hi @vijaykumarm1119, it is hard to say exactly what is wrong without seeing your code. However, a NameError refers to the use of variable names that have not been defined. So, I would suspect one of two things: 1) you have not imported forallpeople; 2) if you have imported forallpeople, you did not set the units environment i.e. import forallpeople; forallpeople.environment('structural', top_level=True)
Wonderful library. It would be great if we could render one dimension vectors along with their units. I have been doing that in mathcad express using the range variable.
Hi Connor. I'm currently using handcalcs ver 1.6.5 I'm not well versed in LaTeX. What should I change in these global configurations to get rendered calculations to be left aligned? import handcalcs.render handcalcs.set_option("math_environment_start", "aligned") handcalcs.set_option("math_environment_end", "aligned")
It seems to be dependent on your renderer. When I use Mathjax rendering, it seems to be left-aligned by default. When I use the Katex plugin it seems to be centered automatically.
@@connorferster I changed these : handcalcs.set_option("math_environment_start", "aligned") handcalcs.set_option("math_environment_end", "aligned") into "flalign*" And it seems to work well enough. But now I struggled to find how to export to html with nbconvert with Mathjax 3. For some reason even if try to change the cdn into Mathjax 3, nbconvert will still use Mathjax 2.7.7 🥲
Hi Connor. I see You use Bluebeam Revu. I wander if there is a way to automate certain boring and repeatable tasks in said programme (eg. updating titleblocks etc.)? Thanks!
Looks great but I can only get a render of the answer i.e. c = 0.6. The rest of the equations are not being generated? LAtex works ok using $ signs. Can you help?
@@connorferster Thank you for the answer! I had the same issue until you mentioned the use of extra_spaces in the expression. Again, thank you for this powerful tool!
Your video has inspired me to learn python/jupyter for my civil and structural engineering calculations. I have followed your video as best I can, but am having 2 issues: 1. The renders are not printing out the formula, always just the answer, for example S_x=b*d*2/6 just outputs Sx=133333.333m3 instead of the formula with variables, then the answer. %%render symbolic prints the formula, but no answer. Can anyone assist? 2. The greek symbol substitution doesn't seem to be working for me. I get a NameError: name 'alpha' is not defined. Can anyone assist?
Hi @troypiggins, 1. Try writing your formula with spaces around the = sign. Like, S_x = b*d**2/6 instead of S_x=b*d**2/6 2. A name error is saying that the variable name “alpha” is not yet defined. Check two things: * You have “alpha = …” somewhere in your code before you have “something = alpha …” somewhere else. * If you do have the above, make sure that the “alpha = …” code cell is run before the “something = alpha …” cell. * If you do have the above, make sure that in the event the “alpha = …” code is under and if statement that the code under the if is actually being run. Hope that helps!
Hello. Great module! Is it possible to render variables containing non-ASCII characters? Currently, if such a variable is used in an expression, only the name of the variable and the result are rendered, without an intermediate formula.
Thanks for bringing this up. I will be updating the parser in v3.0 to handle (most) of these scenarios. At that point, the limitation will be on what can be rendered by Katex or Mathjax.
Amazing . How can I show results in cm^2 instead of m^2 . I know the .prefix('c') . Nothing seems to show the results in cm^2 .... I finally got the answer
Hi Connor, Thank for the handcalcs library. However, I get the message that module install_html is not defined. Can you please comment what could be the issue?
I dont know man, it's cool that you know how to do all this but isn't this sort of reinventing the wheel? software has come a long way in our field, just be adaptable to the software thats out there, its faster
Hello sir. thanks for the forallpeople and handcalcs module. youre a legend. I have a question, I cant create kN/m (e.g. for line load application), it is always converted to joule. any suggestion ? thanks sir
Hello sir. thanks for great forallpeople and handcalcs. youre a legend. I have a question, I cant create kN/m (e.g. for line load application), it is always converted to joule. any suggestion ? thanks sir
Thanks for the video. I am finding it very useful in trying to get started with python. I do have a couple of questions. I am trying to use a prime in my variable designation, like f'c. How is that achieved? Also, how do you include units in your variables?
You can use either my units package, forallpeople, or another one called, pint. The units are Python objects. To make your variable a unit quantity, multiply the number value by its unit.
When you say, "imperial units" do you mean "US Customary" units or do you mean British units? If you mean US Customary units, then the "structural" environment already includes many of them already. If you mean the British unit system, then you would have to define a new environment scaled by the commonly accepted SI equivalents.
@@connorferster Thanks for the information. I was referring towards "US Customary" Units. Just beginning to start messing around with Python, thanks for the walk through.
@Connor Ferster i have installed handcalcs and everything is working and latex representation of formulas shows. But for example if i write %%render a=1 b=3 c=a+b. As result it shows only c=4 not full row with numerical substitution c=a+b=1+3=4. Maybe you know why it is so?
Is there a way to increase the font size of the rendered output? I mean, when I got my HTML file, I found my rendered variables too small too read. I'd also like to know how can I align them to the left rather than center aligned. Thanks Connor.
To align to the left, I believe you can use the Mathjax renderer (default in JupyterLab) instead of installing the Katex renderer. Katex is faster but it aligns everything in the center. Whenever I have used Mathjax, it aligns on the left. Font size is something that would have to be adjusted either by scaling the size of your printed page or in the math renderer (ie. Mathjax or Katex)
Hei Connor, Thank you very much for both amazing video and handcalcs man. I am totally mindblown that not only you are a structural engineer, but you are only an expert in Python as well. I was wondering if you might be interested in making video regarding why and how did you learnt to the point that you could even contribute to Python community. Again, really appreciate it for your effort