Can You please tell me whats am I doing wrong?
You left out a space after the #. It should be:
# r: numpy
Notice there is a green squiggle under #r in your script. It is trying to show you what needs to be fixed.
My script runs with this change. But the version number is reported as 1.21.4 even with your requirements line specifying 1.21.3 included. Is this a problem?
Regards,
Terry.
The other requirement is that when you first install Rhino 8 and a question appears about whether you want to install Python packages you have to respond yes. Do you remember doing this?
Thanks Terry, solution found here
Believe me, this tambourine method never fails.
Nice to see that reference for explicitly installing numpy.
Again in my case it was unnecessary as I chose the load Python packages option when installing Rhino 8. It took a while to do this step so there may be other packages already that are ready on my system but will require a separate explicit install on your system.
Have you tried re-installing Rhino 8 to see if the Install Python packages question comes up?
@monkelisha Would you mind after running the script and seeing the missing numpy error, open RhinoCode log window from Tools menu and share the full logs. I’d like to see where and why numpy install is failing
It’s called WIP for a reason
So far I have spent most of my time on this project getting cpython and roslyn runtimes to work consistently on intel-windows, intel-mac, and arm64-mac. Everything about this project is work-in-progress.
That said, I really appreciate your feedback and will incorporate these into the “Preferences” window (currently showing a WIP message) to have more control over the editor. All updates to the project will be posted on this thread.
Oh btw, python has black as formatter. If you right click on the script and hit Format it should be able to make the space/tabs consistent as a workaround for now
@Terry_Chappell What’s you laptop screen height? Would you mind sending an screenshot of how the editor does not fit?
rhinoscriptsyntax still needs cleanups to make it work with cpython. I have logger this here RH-66339
thanks
Here is a screen shot of my entire laptop screen:
The editor window runs off the page at the bottom.
Here is a similar screen shot with Rhino 7:
The editor window stop neatly at the bottom of the Rhino window.
This issue would be less of a problem if the message region at the bottom was scrollable. Currently it is fixed and more can be seen only by moving the partition line between the text of the script above and the message window below. Making the message portion of the editor window scrollable is more important that even getting it to fit in the Rhino window. This is because with lots of messages, the message window cannot be expanded upwards enough to read all of the messages.
Four fixes are needed for good operation on the native screen of my laptop (the editor window fits inside the Rhino window when I use a 4K display with my laptop):
- Message window needs to be scrollable like in Rhino 7 Python Editor
- Rhino Code Editor needs to fit in Rhino Window.
- Font needs to be changeable to Consolas 12 for much better readability
- Need option for Tab key to make tab characters and not 4 spaces. This option is in Rhino 7 Python Editor
- Should be able to add new lines without editor complaining about illegal syntax. This happens now because my script came from Rhino 7 and has all tabs which works until I try to add a new line which is injected with spaces on left instead of tabs which causes illegal tabs and spaces mixture error.
- Search and Replace need to work (this you already know)
Regards,
Terry.
Checked items have a fix and will be released with the new WIP tomorrow. Others marked as in progress for later releases:
-
Message window needs to be scrollable like in Rhino 7 Python Editor → RH-66354 -
Rhino Code Editor needs to fit in Rhino Window → RH-66355 - Font needs to be changeable to Consolas 12 for much better readability → RH-66351
-
Need option for Tab key to make tab characters and not 4 spaces. This option is in Rhino 7 Python Editor -
Should be able to add new lines without editor complaining about illegal syntax. This happens now because my script came from Rhino 7 and has all tabs which works until I try to add a new line which is injected with spaces on left instead of tabs which causes illegal tabs and spaces mixture error - Search and Replace need to work → Logged RH-66353
Ehsan,
-
In the Rhino 7 Python Editor under the Edit tab there is a Selection option the provides some nice functions as shown below.
I notice that the new Rhino Code Editor also has a Selection option but it is not yet active. Will it incorporate similar functions? Some of these functions deal with tabs so its related to the 3rd checked item in your list. -
One function I find very useful in the Visual Studio Editor is Go To Line as shown below:
There are many other Go To functions as well but Go To Line is really all that applies to a simple text editor. Would you please consider adding a Go To Line option in the Edit tab? Ctrl+g would be the logical shortcut to quickly access this function. -
Thank you for your excellent work on the Rhino Code project. It is going to provide a much needed improvement to the Rhino-Python environment → We get to jump from IronPython 2.7 to Python 3.9. Wow!
Regards,
Terry.
So… am I the only one excited that we can use type hints now?

Type hinting is nice.
- That’s the goal. RCE uses Monaco editor control which is what vscode uses so some of these functionality is already provided by the control and are easy to expose in the menus and UI. We’ll incorporate them as we go e.g. “Convert Indentation” has already been added for next release.
- Logged as RH-66361
- You are most welcome.







