GhPython IronPython Engine "Frames" - Grasshopper2024-03-29T06:32:08Zhttps://www.grasshopper3d.com/forum/topics/ghpython-ironpython-engine-frames?commentId=2985220%3AComment%3A1484142&feed=yes&xn_auth=noI think this is it:
networkx.…tag:www.grasshopper3d.com,2018-01-17:2985220:Comment:18787382018-01-17T14:16:00.158ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>I think this is it:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769351331?profile=original" target="_self">networkx.zip</a></p>
<p>I think this is it:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769351331?profile=original" target="_self">networkx.zip</a></p> hi anders,
your download link…tag:www.grasshopper3d.com,2018-01-17:2985220:Comment:18785052018-01-17T14:10:47.773Zjnmhttps://www.grasshopper3d.com/profile/johnfistikis
<p>hi anders,</p>
<p>your download link is dead. could you please update it?</p>
<p></p>
<p>best,</p>
<p>jnm</p>
<p>hi anders,</p>
<p>your download link is dead. could you please update it?</p>
<p></p>
<p>best,</p>
<p>jnm</p> Thanks for the feedback. The…tag:www.grasshopper3d.com,2016-03-16:2985220:Comment:14860532016-03-16T14:46:11.109ZDavid Birgehttps://www.grasshopper3d.com/profile/DavidBirge
<p>Thanks for the feedback. The introspection you linked to is very helpful, though admittedly I rely very heavily on intellisense given that I don't code all that often, or do so intermittently.</p>
<p></p>
<p>Thanks again for all the help... I will pass this on to others</p>
<p></p>
<p></p>
<p>Thanks for the feedback. The introspection you linked to is very helpful, though admittedly I rely very heavily on intellisense given that I don't code all that often, or do so intermittently.</p>
<p></p>
<p>Thanks again for all the help... I will pass this on to others</p>
<p></p>
<p></p> No worries David. Hope it hel…tag:www.grasshopper3d.com,2016-03-16:2985220:Comment:14859012016-03-16T09:53:08.952ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>No worries David. Hope it helped.<br></br> <br></br> 1. It <em>could</em> be an issue if you get your paths mixed up. Some Python distributions (Anaconda, Enthought) do some pretty systemwide stuff, which might fuck with your RhinoPython setup. That said, placing modules either in the default RhinoPython folder (as per above) or in a custom folder (editPythonScript editor -> Tools -> Options -> Module Search Paths), should both work. So yes, it's all about putting it in the right folder and…</p>
<p>No worries David. Hope it helped.<br/> <br/> 1. It <em>could</em> be an issue if you get your paths mixed up. Some Python distributions (Anaconda, Enthought) do some pretty systemwide stuff, which might fuck with your RhinoPython setup. That said, placing modules either in the default RhinoPython folder (as per above) or in a custom folder (editPythonScript editor -> Tools -> Options -> Module Search Paths), should both work. So yes, it's all about putting it in the right folder and unzipping it correctly :)<br/> <br/> 2. Intellisense in GHPython only seems to work when an object "knows what it is". That is, when it comes straight from a namespace (like say <em>import Rhino) </em>or when passed as a component input parameter. There might be other cases. My best piece of advice is to never rely on intellisense, but a couple of very useful Python functions. <a href="http://www.grasshopper3d.com/forum/topics/change-number-slider-parameter-using-python?commentId=2985220%3AComment%3A1379174" target="_blank">See my reply here and the links</a>.<a rel="nofollow" href="http://www.grasshopper3d.com/forum/topics/change-number-slider-parameter-using-python?commentId=2985220%3AComment%3A1379174" target="_blank"><br/></a></p> Brilliant!! Thanks so much. T…tag:www.grasshopper3d.com,2016-03-14:2985220:Comment:14841422016-03-14T17:15:16.364ZDavid Birgehttps://www.grasshopper3d.com/profile/DavidBirge
<p>Brilliant!! Thanks so much. Two quick follow up questions if you have time...</p>
<p>1. Do you think installing multiple IDE's and versions of IronPython / Python might cause the problem, or is this simply and issue of putting the right version of networkx into the right folder?</p>
<p>2. Not related really: Inside the Python editor in GH, once you create a variable from a class, you cannot get autocomplete to come up when you use dot-notation on the variable unless, for some reason, it gets…</p>
<p>Brilliant!! Thanks so much. Two quick follow up questions if you have time...</p>
<p>1. Do you think installing multiple IDE's and versions of IronPython / Python might cause the problem, or is this simply and issue of putting the right version of networkx into the right folder?</p>
<p>2. Not related really: Inside the Python editor in GH, once you create a variable from a class, you cannot get autocomplete to come up when you use dot-notation on the variable unless, for some reason, it gets passed into another Python component. In C# new classes/objects immediately have their properties accessible through typical dot-notation. Is this not possible in Python?</p> Try downloading this zip file…tag:www.grasshopper3d.com,2016-03-14:2985220:Comment:14840392016-03-14T08:34:01.640ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Try downloading <a href="https://www.dropbox.com/s/6sn9fupty4lw460/networkx.zip?dl=0" target="_blank">this zip file</a> and unzipping it to this folder:<br/><br/>C:\Users\<strong>YOURUSERNAME</strong>\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts<br/><br/>Then restart Rhino/Grasshopper, open up a GHPython editor, type and run:<br/><br/><em>import networkx<br/><br/></em>Does this work for you?<br/><br/><br/></p>
<p>Try downloading <a href="https://www.dropbox.com/s/6sn9fupty4lw460/networkx.zip?dl=0" target="_blank">this zip file</a> and unzipping it to this folder:<br/><br/>C:\Users\<strong>YOURUSERNAME</strong>\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts<br/><br/>Then restart Rhino/Grasshopper, open up a GHPython editor, type and run:<br/><br/><em>import networkx<br/><br/></em>Does this work for you?<br/><br/><br/></p> Hey Anders,
I've been trying…tag:www.grasshopper3d.com,2016-03-13:2985220:Comment:14836752016-03-13T20:24:44.214ZDavid Birgehttps://www.grasshopper3d.com/profile/DavidBirge
<p>Hey Anders,</p>
<p>I've been trying to get NetworkX to import into a plain old python component in GH and no luck. I downloaded the egg version of 1.5 for Python 2.6 and 2.7, unzipped, and copied into my IronPython site-packages folder. Neither works.</p>
<p>I have a very simple class I wrote in VisualStudio2015 which I can import from this same folder, so Rhino is clearly reading the folder.</p>
<p>When I try to import, though, it says it can't find the module.</p>
<p>Any ideas? I'd like to…</p>
<p>Hey Anders,</p>
<p>I've been trying to get NetworkX to import into a plain old python component in GH and no luck. I downloaded the egg version of 1.5 for Python 2.6 and 2.7, unzipped, and copied into my IronPython site-packages folder. Neither works.</p>
<p>I have a very simple class I wrote in VisualStudio2015 which I can import from this same folder, so Rhino is clearly reading the folder.</p>
<p>When I try to import, though, it says it can't find the module.</p>
<p>Any ideas? I'd like to start coding in VisualStudio with a few modules, but if the code can't access the same modules from GH, I'm out of luck.</p>
<p>Thanks, David</p> Great, hope you won't be miss…tag:www.grasshopper3d.com,2013-07-04:2985220:Comment:8813742013-07-04T08:27:26.561ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Great, hope you won't be missing too many features from 1.7.</p>
<p>You can check the GHPython component version by opening the editor, the version number should be displayed in the lower right corner.</p>
<p>I just checked out the <a href="http://networkx.github.io/documentation/latest/reference/news.html" target="_blank">NetworkX release log</a>. It only mentions IronPython compatibility from 1.2. Perhaps this is why 1.1 gave you an error. Either way, would be good to get this sorted out…</p>
<p>Great, hope you won't be missing too many features from 1.7.</p>
<p>You can check the GHPython component version by opening the editor, the version number should be displayed in the lower right corner.</p>
<p>I just checked out the <a href="http://networkx.github.io/documentation/latest/reference/news.html" target="_blank">NetworkX release log</a>. It only mentions IronPython compatibility from 1.2. Perhaps this is why 1.1 gave you an error. Either way, would be good to get this sorted out so that we can benefit from the (almost) full range of Python goodies out there. Fingers crossed!</p> Thanks Anders, using 1.5 work…tag:www.grasshopper3d.com,2013-07-03:2985220:Comment:8812912013-07-03T15:45:15.162ZBenjamin Golderhttps://www.grasshopper3d.com/profile/BenjaminGolder
<p>Thanks Anders, using 1.5 worked!</p>
<p>I was using</p>
<p>Rhino: Version 5 SR4 (5.4.30524.11065, 05/24/2013)</p>
<p>GH: 0.9.0014</p>
<p>I'm not sure which GhPython it is. Is there a way to check?</p>
<p>I had tried NetworkX 1.7, 1.6, and 1.1, but all of them had the same error. I had assumed there would be no difference between 1.1 and 1.6.</p>
<p>Thanks Anders, using 1.5 worked!</p>
<p>I was using</p>
<p>Rhino: Version 5 SR4 (5.4.30524.11065, 05/24/2013)</p>
<p>GH: 0.9.0014</p>
<p>I'm not sure which GhPython it is. Is there a way to check?</p>
<p>I had tried NetworkX 1.7, 1.6, and 1.1, but all of them had the same error. I had assumed there would be no difference between 1.1 and 1.6.</p> Hi Ben,
I've been/am using Ne…tag:www.grasshopper3d.com,2013-07-03:2985220:Comment:8812422013-07-03T08:17:27.776ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Hi Ben,</p>
<p>I've been/am using NetworkX quite a lot lately as well. I have however not experienced the error you're getting and would like to avoid it if possible. I assume that this might occur due to us using different versions of the involved applications/modules. My current setup:<br></br><br></br>Rhino: Version 5 SR3 (5.3.30426.17065, 04/26/2013) <br></br>GH: 0.9.0056<br></br>GHPython: 0.5.1.0<br></br>NetworkX: 1.5<br></br><br></br>I forget, but seem to vaguely remember having problems running NetworkX 1.7…</p>
<p>Hi Ben,</p>
<p>I've been/am using NetworkX quite a lot lately as well. I have however not experienced the error you're getting and would like to avoid it if possible. I assume that this might occur due to us using different versions of the involved applications/modules. My current setup:<br/><br/>Rhino: Version 5 SR3 (5.3.30426.17065, 04/26/2013) <br/>GH: 0.9.0056<br/>GHPython: 0.5.1.0<br/>NetworkX: 1.5<br/><br/>I forget, but seem to vaguely remember having problems running NetworkX 1.7 within Rhino when I was first was testing it out last summer/fall. <strong>Edit</strong>: Just updated to 1.7 and it is indeed the same error. Will roll back to 1.5 for now. Also, kudos on your suggestion :)<br/><br/>Best,</p>
<p>Anders</p>