# Targeted Python Learning Resources?

**URL:** <https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486>\
**Category:** scripting\
**Created:** [September 13, 2022, 6:31am UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486 "2022-09-13T06:31:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakechevrier](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/jakechevrier/32/9869_2.png) [@jakechevrier](https://discourse.ladybug.tools/u/jakechevrier)\
**Post date:** [September 13, 2022, 6:31am UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/1 "2022-09-13T06:31:35Z")

</div>

Hi there,

I’m an avid grasshopper user, but quickly get lost outside of the visual scripting interface…

I’m curious if anyone can point me to some resources to help quick start my python coding journey? What topics would you suggest I research to start leveraging Rhino and LBT outside the grasshopper environment? (thinking mainly pollination app development)

What fundamental things do I need to understand? SDKs? APIs? notebooks? packages?

Realizing this is extremely open-ended, but appreciate any resource suggestions you may have that can help me focus my efforts as there’s only so much time in the day(+night)! 😃

---

<div class="post-metadata">

**Author:** ![MR\_Yuki](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mr_yuki/32/22434_2.png) [@MR\_Yuki](https://discourse.ladybug.tools/u/MR_Yuki)\
**Post date:** [September 13, 2022, 11:59am UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/2 "2022-09-13T11:59:12Z")

</div>

Hi @jakechevrier ,

Have you looked at [Rhino education](https://www.rhino3d.education/)?  
It has some python courses for Rhino and you will write python scripts in rhino.  
Understanding python will necessary if you want to read or edit some codes.

Unfortunately I can’t help too much but you will learn that a packages is like downloading a new plug-in for grasshopper (kinda).

Regards.

---

<div class="post-metadata">

**Author:** ![BenGottkehaskamp](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/bengottkehaskamp/32/20257_2.png) [@BenGottkehaskamp](https://discourse.ladybug.tools/u/BenGottkehaskamp)\
**Post date:** [September 13, 2022, 12:12pm UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/3 "2022-09-13T12:12:53Z")

</div>

If you have access to LinkedIn learning, there ist also one very good cours for Python in Grasshopper (Ironpython), which pretty much explains the basics.

---

<div class="post-metadata">

**Author:** ![TrevorFedyna](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/trevorfedyna/32/15628_2.png) [@TrevorFedyna](https://discourse.ladybug.tools/u/TrevorFedyna)\
**Post date:** [September 13, 2022, 1:26pm UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/4 "2022-09-13T13:26:30Z")

</div>

This is something I’m rather passionate about.  
As someone who’s kind of taught themselves both programming and energy modeling, basically with LBT to be honest 😅. The whole “Rhino, Grasshopper, Python” universe is E X P A N S I V E; though in the grand scope and scale of things; this is while HUGE, still a small niche; and I’d always wished there was a topical “crash course”, that may have saved a good deal of time! 😃

I’ll share a number of things; some may not be topical to your post specifically, but to also help others

* * *

quick notes:

- [Niloofar Zaker](https://www.linkedin.com/in/niloofar-zaker-73809b74/) has a GhPy intro course I found… much after the fact that would have saved a ton of headache.  
Also doubles, if I remember correctly as both pretty basic python as well as GhPy specifics, both fundemental and very in-depth.
- [A quick reference to working with Honeybee in a jupyter notebook](https://github.com/TfedUD/hbyter_notebook/blob/main/demo.ipynb)

* * *

In terms of python general:

> **[Learn Python Programming Online – Real Python](https://realpython.com/start-here/)**
>
> Learn Python online: Web development tutorials, Python tutorials for beginners, Python books and courses, Python news, tutorials, code examples, snippets, articles, and more.

Ive personally found realpython to be quite helpful, both the free, and also the paid to be pretty worth it if desired.

[**Though Niloofar Zaker’s ghpy intro can kind of serve as a bit of both**](https://www.rhino3d.education/p/ghpython-introduction)

* * *

**Part of what for me, seemed to make the initial learning curve steep was:**

- The importance of getting a virtual environment setup for individual projects.( just start every new project like this:

```auto
python -m venv .env

.env\scripts\activate

```

- General IDE setup, configuration etc, [realpython.com has a really good tutorial on getting vs code (my personal reccomendation) setup and familiarized](https://realpython.com/python-development-visual-studio-code/).

* * *

^^^^ Initially getting an enviornment setup, your dependencies installed and either in a file.py or a notebook.ipynb working so you can “do the things”, confidence and understanding purely in “how to get things setup so my code will run”, so you can _write code, troubleshoot why it doesn’t work and validate it_, that’s kinda the door, walk through it!

for me “ok I want to do this\_\_\_\_” and then googling, referencing github/grasshopper etc and working on making it happen, was the most effective.

* * *

Don’t be afraid to copy and paste code, if it exists where you can see it that’s what it is for.

Google and Stackoverflow early.

Find a project(s) to focus on, and make a goal of sending a pull request to contribute to the codebase (if you don’t know now: don’t worry, if becomes relevant you will! if not, no worries! 🙂 )  
Find a couple colleagues / friends who write python well and get to talking about it, ask questions and do the things!

HOPEFULLY some of that was helpful.  
TLDR:  
youtube/tutorials untill you can start hacking together working code, then work on making it better, continue/repeat as needed.

---

<div class="post-metadata">

**Author:** ![jakechevrier](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/jakechevrier/32/9869_2.png) [@jakechevrier](https://discourse.ladybug.tools/u/jakechevrier)\
**Post date:** [September 19, 2022, 4:05pm UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/6 "2022-09-19T16:05:20Z")

</div>

Thank you all for the recommendations! I’ll definitely be checking these out. Its funny because I don’t consider myself a beginning programmer (understand logic, data flows, if statements, etc.) but once i get out of GH i immediately feel like a total rookie.

I’m very passionate about it as well @TrevorFedyna, as i basically did the same thing! Mostly Chris’s videos 😃

---

<div class="post-metadata">

**Author:** ![TrevorFedyna](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/trevorfedyna/32/15628_2.png) [@TrevorFedyna](https://discourse.ladybug.tools/u/TrevorFedyna)\
**Post date:** [September 19, 2022, 4:31pm UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/7 "2022-09-19T16:31:25Z")

</div>

> [@jakechevrier](#):
>
> once i get out of GH i immediately feel like a total rookie.

I feel like for me ipynb’s in vs code, were a nice little bridge between grasshopper and non grasshopper python! definitely helped alot, I still usually have one for each project i’m working on for on the fly test/check/ tinkering etc!

---

<div class="post-metadata">

**Author:** ![BenGottkehaskamp](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/bengottkehaskamp/32/20257_2.png) [@BenGottkehaskamp](https://discourse.ladybug.tools/u/BenGottkehaskamp)\
**Post date:** [September 20, 2022, 2:21pm UTC](https://discourse.ladybug.tools/t/targeted-python-learning-resources/19486/8 "2022-09-20T14:21:31Z")

</div>

Furthermore, I recently discovered the NUS (National University of Singapore) offers a data science course with python and other subjects. Now that I’m a few hours in, I’d definitely recommend it. It is by Clayton Miller who is publishing interesting research about thermal comfort and more.

> **[Data Science for Construction, Architecture and Engineering](https://www.edx.org/course/Data-Science-for-Construction-Architecture-and-Engineering)**
>
> This course introduces data science skills targeting applications in the design, construction, and operations of buildings. You will learn practical coding within this context with an emphasis on basic Python programming and the Pandas library.
