# Error in python code in Rhino 6

**URL:** <https://forum.compas-framework.org/t/error-in-python-code-in-rhino-6/270>\
**Category:** compas\_rhino\
**Created:** [October 31, 2019, 2:09pm UTC](https://forum.compas-framework.org/t/error-in-python-code-in-rhino-6/270 "2019-10-31T14:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [October 31, 2019, 3:37pm UTC](https://forum.compas-framework.org/t/error-in-python-code-in-rhino-6/270/2 "2019-10-31T15:37:17Z")

</div>

hi,

plotters and viewers are meant to be used outside of Rhino. they rely on `matplotlib` and that is not available in IronPython, which is the implementation of Python Rhino uses to execute Python code.

try running your code in VS Code or some other Python editor. there it should work…

let me know if you need more detailed instructions

---

_[View the full topic](https://forum.compas-framework.org/t/error-in-python-code-in-rhino-6/270)._
