# Run rhinopython on terminal command line?

**URL:** <https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124>\
**Category:** Scripting\
**Created:** [October 27, 2015, 9:05pm UTC](https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124 "2015-10-27T21:05:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![owhite](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/owhite/32/341689_2.png) [@owhite](https://discourse.mcneel.com/u/owhite)\
**Post date:** [October 27, 2015, 9:05pm UTC](https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124/1 "2015-10-27T21:05:34Z")

</div>

Hello,

I have been greatly enjoying using the ironpython capability in Rhino for Mac. Does anyone know if it’s possible to run my python code on the mac terminal, rather than in Rhino? Note, I’m not referring to the command line in Rhino, I’m shooting for using the Mac OSX terminal.

thanks,  
owen

---

<div class="post-metadata">

**Author:** ![Alain](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alain/32/512812_2.png) [@Alain](https://discourse.mcneel.com/u/Alain)\
**Post date:** [October 28, 2015, 10:58am UTC](https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124/2 "2015-10-28T10:58:48Z")

</div>

Hello,  
Any python code that imports modules from RhinoScriptSyntax can only be run in the context of Rhino.

---

<div class="post-metadata">

**Author:** ![owhite](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/owhite/32/341689_2.png) [@owhite](https://discourse.mcneel.com/u/owhite)\
**Post date:** [October 28, 2015, 2:34pm UTC](https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124/3 "2015-10-28T14:34:46Z")

</div>

thanks.

---

<div class="post-metadata">

**Author:** ![JKolodner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jkolodner/32/480882_2.png) [@JKolodner](https://discourse.mcneel.com/u/JKolodner)\
**Post date:** [October 28, 2015, 3:06pm UTC](https://discourse.mcneel.com/t/run-rhinopython-on-terminal-command-line/26124/4 "2015-10-28T15:06:45Z")

</div>

That said, I _think_ you can call Rhino from Python and then run it in an automated “head-less” fashion without loading up all of the UI, so you’re sending commands to the instance, [ala this topic](http://discourse.mcneel.com/t/best-way-to-use-python-to-launch-rhino-and-then-run-some-more-python/24643).

Of course, the commands you’re able to give it include \_RunPythonScript, so while it’s two separate instances of the interpreter running, one “outside” and one inside the context of Rhino, that may help you to think about as an option.
