Skip to content
/ gh-hops-flask Public template

Template to use the latest Python in Grasshopper, including libraries such as Numpy and SciPy.

Notifications You must be signed in to change notification settings

messismore/gh-hops-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gh-hops and Flask

Use the latest Python in Grasshopper, including libraries such as Numpy and SciPy. More info

Setup

As VS Code Development Container (recommended)

Requirements:

  1. Clone this repository
  2. Make sure Docker is running
  3. Open the folder in VS Code
  4. Choose "Remote Containers: Open Folder in Container" (The command panel is invoked with f1)

Do it yourself

With venv, pip, etc. like any other Python dev environment

How To

  1. Add your functions to app.py
  2. Run the Server: python app.py, it will log something like [INFO] * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) to the console.
  3. Add a Hops Component to your Grasshopper definitions (you may need to install it with the Package Manager in Rhino)
  4. Double click the Hops Component on the Canvas. Enter the path to your function in the Pop Up. (In our example it would be http://127.0.0.1:5000/[your function here ])

About

Template to use the latest Python in Grasshopper, including libraries such as Numpy and SciPy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages