Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
grasshopper:cpython [2018/08/08]
scottd
grasshopper:cpython [2018/08/08] (current)
scottd
Line 47: Line 47:
   - [[http://​download.rhino3d.com/​Grasshopper/​1.0/​wip/​rc/​download/​|Install Grasshopper]] or make sure the current Grasshopper is **Build 0.9.0076** by opening Grasshopper > Help pulldown > About Grasshoppper.   - [[http://​download.rhino3d.com/​Grasshopper/​1.0/​wip/​rc/​download/​|Install Grasshopper]] or make sure the current Grasshopper is **Build 0.9.0076** by opening Grasshopper > Help pulldown > About Grasshoppper.
   - [[https://​www.food4rhino.com/​app/​ghpython|Download and install GHPython version 0.6.0.3]]. The install can be completed by dragging and dropping the GHA file onto the Grasshopper Canvas.   - [[https://​www.food4rhino.com/​app/​ghpython|Download and install GHPython version 0.6.0.3]]. The install can be completed by dragging and dropping the GHA file onto the Grasshopper Canvas.
 +  - Download [[https://​github.com/​Digital-Structures/​ghpythonremote/​releases/​latest|GHPython Remote Release]]
 + and extract the folder into the documents folderin windows.
  
 ==== Update the Rhino 5 IronPython version==== ==== Update the Rhino 5 IronPython version====
Line 74: Line 76:
 print sys.version_info print sys.version_info
 </​code>​ </​code>​
-  - Now the script should display the full release version information:<​code ​python>+  - Now the script should display the full release version information:<​code>​
 sys.version_info(major=2,​ minor=7, micro=5, releaselevel='​final',​ serial=0) sys.version_info(major=2,​ minor=7, micro=5, releaselevel='​final',​ serial=0)
 </​code>​ </​code>​
Line 101: Line 103:
 python -m pip install pip==9.0.3 python -m pip install pip==9.0.3
 </​code>​ </​code>​
-  - Install gh-python-remote in Annconda ​- The first line installs gh-python-remote in the current Python interpreter. The second tries to find your Rhinoceros IronPython installation,​ and install gh-python-remote there. The extra options are necessary to be able to get the pre-release version of rpyc. <​code ​python>+  - Install gh-python-remote in Anaconda ​- The first line installs gh-python-remote in the current Python interpreter. The second tries to find your Rhinoceros IronPython installation,​ and install gh-python-remote there. The extra options are necessary to be able to get the pre-release version of rpyc. <​code>​
 pip install gh-python-remote --upgrade --process-dependency-links --no-binary=:​all:​ pip install gh-python-remote --upgrade --process-dependency-links --no-binary=:​all:​
 python -m ghpythonremote._configure_ironpython_installation python -m ghpythonremote._configure_ironpython_installation
 </​code>​ </​code>​
 +  - Record the location of the rhinoremote environment by using the conda command:<​code>​
 +conda env list
 +</​code>​
 +It should show something like "​C:​\Users\steve\AppData\Local\conda\conda\envs\rhinoremote"​
  
  
 +==== Using GH Python Remote ====
  
  
 +  - Start the Annaconda Console Application.
 +  - Activate the rhinoremote environment:<​code python>
 +conda activate rhinoremote
 +</​code>​
 +  - Start Rhino and Grasshopper. ​ Open the Documents/​ghpythonremote-1.1.X\ghpythonremote\examples\GH_python_remote.ghx
  
grasshopper/cpython.txt ยท Last modified: 2018/08/08 by scottd