<div>Thanks Brett. Yes, it works. The way I did it and Michael Foord pointed me to it, is to start python and then run</div>
<div> </div>
<div>import IPython<br>IPython.Shell.IPShell().mainloop(sys_exit=1)<br></div>
<div>or create a bat file with this cmd</div>
<div> </div>
<div>@&quot;YOUR PYTHONNET DIR\python.exe&quot; &quot;C:\Python25\scripts\ipython.py&quot; %*</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Mon, Apr 13, 2009 at 1:41 PM, Tribble, Brett <span dir="ltr">&lt;<a href="mailto:btribble@ea.com">btribble@ea.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">In theory it should work, but I haven’t tried it myself. It certainly works from the interactive Python “shell” in Maya. Copy </span><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: &#39;Courier New&#39;">clr.pyd</span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> and </span><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: &#39;Courier New&#39;">python.runtime.dll</span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> into a directory that is part of IPython’s %pythonpath% and also part of the system path %path%. Load the clr with the “</span><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: &#39;Courier New&#39;">import clr</span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">” statement, and you should be good to go. I have noticed that when invoked this way, Maya’s native version of Python “forgets” how to load subsequent .pyd modules. It appears that the clr intercepts these import statements and fails to handle them correctly. I have resolved this by simply loading all .pyd modules I think I’ll need before loading the clr.</span></p>

<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> pythondotnet-bounces+btribble=<a href="http://maxis.com/" target="_blank">maxis.com</a>@<a href="http://python.org/" target="_blank">python.org</a> [mailto:<a href="mailto:pythondotnet-bounces%2Bbtribble" target="_blank">pythondotnet-bounces+btribble</a>=<a href="http://maxis.com/" target="_blank">maxis.com</a>@<a href="http://python.org/" target="_blank">python.org</a>] <b>On Behalf Of </b>Kapil fadnis<br>
<b>Sent:</b> Monday, April 13, 2009 10:05 AM<br><b>To:</b> Michael Foord<br><b>Cc:</b> <a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a><br><b>Subject:</b> Re: [Python.NET] ipython</span></p>
</div>
<div>
<div></div>
<div class="h5">
<p> </p>
<div>
<p>I dont know how to ? I run the Python.net console from the Python.net directory and it invokes the Python.exe console which calls the regular python mode. Is there a another way to run Python.net?</p></div>
<div>
<p style="MARGIN-BOTTOM: 12pt">Thanks for the quick response. </p></div>
<div>
<p>On Mon, Apr 13, 2009 at 1:00 PM, Michael Foord &lt;<a href="mailto:fuzzyman@voidspace.org.uk" target="_blank">fuzzyman@voidspace.org.uk</a>&gt; wrote:</p>
<p>Kapil fadnis wrote:</p>
<p style="MARGIN-BOTTOM: 12pt">Hi,<br>Is is possible to use ipython shell with <a href="http://python.net/" target="_blank">python.net</a> &lt;<a href="http://python.net/" target="_blank">http://python.net</a>&gt; ? please let me know how to do so ?</p>

<p style="MARGIN-BOTTOM: 12pt">Have you tried it? What happens?<br><br>Michael</p>
<p>Thanks for your help.<br>------------------------------------------------------------------------<br><br>_________________________________________________<br>Python.NET mailing list - <a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/mailman/listinfo/pythondotnet</a></p>
<p style="MARGIN-BOTTOM: 12pt"><br><br>-- <br><a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br><a href="http://www.voidspace.org.uk/blog" target="_blank">http://www.voidspace.org.uk/blog</a><br>
<br></p></div>
<p> </p></div></div></div></div></blockquote></div><br>