Rhino 8 Feature: ScriptEditor (CPython, CSharp)

That’s great! Thank you Ehsan. Any eta on that wip?

Meanwhile, we have managed to get pandas working on windows by arranging the requirements in a specific order and adding a locale.setlocale(locale.LC_ALL, 'en-US.utf8') before them at the very top. We remove the requirements for the actual code to prevent gh from updating them, but the setlocale call is still required to correctly import pandas on windows.

We still get a hashtable error sometimes when calling pandas, but this is random and goes away with a rhino restart.

Meanwhile, any news on the th.list_to_tree() issue? Were you able to reproduce?

… this topic is quite long - sorry if i missed something.

I really love powerful code hints / autocomplete / “intellisense”.
(I know not all coders / developers do)

I wish:
(1)
while typing, the suggestion-fly-out should (graphically) differ between properties and functions and maybe enums. not only showing (abc) and the violet wireframe dice.
A simple example is
Curve.GetLength() - vs. Polyline.Length it would be great if the editor supports more infos here. (function vs property)

(2)
some short info on constructors, function-parameters and return values would be very helpful. The old phyton editor has this in the output field. (do i miss something ?)

(3)
speed - sometimes code-suggestions are quite slow.

import Rhino.Geometry as rg
rg. ....

sometimes takes quite long, even if it worked fast a few lines before

Added a YT for this. Thank you! RH-76717

although I’m too late in this party, I was wondering if there is a help feature in the output window, like the old python editor. this can be a huge deal for noobs like myself who try to learn by trying.
image
Otherwise, I really like the direction of this new editor.

I absolutely love the script editor in Grasshopper for Rhino8WIP, just saying…

I can translate all my old math and computer textbooks into 3D parametric models in grasshopper with 50 lines of python 3 NUMPY and Rhino Common API all generated in seconds with gpt-4 with minimal debugging. I am posting all my work in live YouTube videos and distributing all the files on my domain.

PM me if you are interested. I can’t wait to push the maths into pandas and more complex python libs this fall.

Machine Learning and Data Visualization can be so intuitive with grasshopper and rhino!

Onward,

Michael Wickerson

@mwickerson I have been following your YouTube :smiley: Thanks for the kind words. Next WIP is getting a massive editor update that would make the editor control much snappier and faster (:crossed_fingers:)

That is great news, I waited 25 years for this type of visualization tools for pure math and computers. I feel like things are finally falling into place for my computational mind. I hope to be of some use for others wanting the visualize mathematics in the wonderful 3D world that Rhino can create!

I am honored that you have had a look at what I have been up to this summer.

Best, Michael

Here are a few of my recent screen shots of CLEAR, CONCISE, COGENT, INTELLIGIBLE, AND WELL COMMENTED .gh files utilizing the single python 3 script edit node in Rhino8WIP.

This has really cleaned up my act, my video tutorials are getting organized and people are starting to take note of my 5 years of chaotic learning thanks to this new version of Rhino.

Thank you, I hope to add some needed material to computational design with Grasshopper, Python, and Rhino.



I call all my new work with the Rhino8WIP scripting node in Grasshopper, “SEE the MATH”, and I hope others will like to collaborate on GitHub.

Michael Wickerson
www(dot)wickersonstudios(dot)com

EXAMPLE FILES OF MY RESEARCH AND DEVELOPMENT:
Learn_DATA_SCIENCE_Visually-main.zip (663.6 KB)

Adding to this, but slightly different topic. The code suggestions for C# in Rhino 7 look like this:
image

The new ScriptEditor provides this:
image

It would be great if it could show the return type as well as the name of the variables, to get some understanding of what they mean.

same as I wished here:

Created a YT for this (RH-76821
Thank you

You’ve been an immense resource. I’ve always had difficulty grasping math in school due to lack of visual learning examples. I really enjoy you testing things out computationally and visually. Much easier for me to grasp the concepts. Thanks for sharing!

I honestly think I would have stayed in math and computers at Waterloo University in the early 1990’s if I had a personal computer in my dorms. The tech makes it all possible now to visualize everything. My gpt-4 scripts are now writing scripts for me to “toggle” my complex numbers on and off to reach into new dimensions. It is endless and mind-boggling! Best, Michael Wickerson

created from one trig polynomial that it’s first and second derivatives:
PARAMETRIC
f_values = a * np.sin(b * x_values) + c * np.cos(d * x_values) + e * x_values2
df_values = a * b * np.cos(b * x_values) - c * d * np.sin(d * x_values) + 2 * e * x_values
d2f_values = -a * b
2 * np.sin(b * x_values) - c * d**2 * np.cos(d * x_values) + 2 * e



This thread makes me dizzy. So much code. I don’t even know what I’m looking at. :sweat_smile:

So where’s the geometry constraints and dimension constraints tool buttons? :smiley:

In the September 9 update version, after running the code in the template shown below, the program does not respond.
I suspect it has something to do with network connectivity


rhinocode_20516.txt (27.8 KB)

I see numpy specified at the top. Is the machine not connected to internet? It might be stuck trying to install numpy

The network connection is normal。
It may be a network connection issue, but my MacBook doesn’t have this problem in the same network environment.

Interesting. Does this happen every time? Would you be able to install numpy using pip install numpy on the terminal on windows machine? Thanks for helping me figure out where the problem is