Giter VIP home page Giter VIP logo

rhino_compute_workshop's Introduction

Rhino Compute Workshop

Introduction

This tutorial will walk you through connecting a Python Jupyter Notebook to Rhino Compute.

Rhino_Jupyter_Graphic-03

Agenda

  • Introduction
  • Presentation
  • Installation
  • Jupyter notebook intro
  • Spatial analytics
  • Rhino Compute connection line by line code
  • Advanced section
  • Q/A

Installation

Install the following packages in order.

Anaconda

Installation Link

Anaconda is a distribution of the Python for scientific computing, that aims to simplify package management. The base installer comes with Python 3.8.

Once installed, open the CMD.exe Prompt

cmd-prompt-example

This will open a command prompt in the conda default base environment. From here you can install all packages.

cmd-prompt-example-2

Jupyter-Lab

If Jupyter Lab is not shown in the Anaconda Navigator install using the following.

Jupyter Lab Homepage

pip install jupyterlab

Once, installed, launch JupyterLab in Powershell/Terminal. It will open a browser window in the default directory.

Rhino3dm

Rhino3dm Homepage

CPython package based on OpenNURBS with a RhinoCommon style.

pip install rhino3dm

Matplotlib

Matplotlib Homepage is a library for creating visualizations in Python. The possibilities are almost endless with what you can create from static, animated, and even interactive visualizations all with very few lines of code.

pip install matplotlib

Geopandas

Geopandas

GeoPandas is an open source project to make working with geospatial data in python easier. GeoPandas extends the datatypes used by pandas to allow spatial operations on geometric types. Geometric operations are performed by shapely. Geopandas further depends on fiona for file access and matplotlib for plotting.

conda install geopandas

SkLearn

Scikit-learn is an open source machine learning library that supports supervised and unsupervised learning. It also provides various tools for model fitting, data preprocessing, model selection and evaluation, and many other utilities. We will be using Kmeans clustering to cluster simliar tax lots together and color them.

Installation link

pip install scikit-learn

Ladybug

Ladybug allows you to import and analyze standard weather data in Grasshopper; draw diagrams like Sun-path, wind-rose, radiation-rose, etc; customize the diagrams in several ways; run radiation analysis, shadow studies, and view analysis.

Installation Link

Grasshopper + HOPS

Hops Website Link

  1. Open Rhino 7
  2. type PackageManger in the Rhino command line.
  3. search for Hops
  4. Select Hops and install
  5. Restart Rhino

Open Grasshopper and go to Preferences --> Solver and uncheck Hide Rhino Compute Window. This will open the Rhino Compute window during development.

Grasshopper Setting

gh_pref_terminal_window

Rhino Compute Terminal Window

rhino_compute_terminal_window

Debug Environmental Variable

To see debug messages during development in the Rhino Compute terminal window (Windows) go to Edit System Environment Variables --> System Variables and create a New variable RHINO_COMPUTE_DEBUG and set to true

rhino_compute_workshop's People

Contributors

emptybox-design avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.