<div dir="ltr">Thanks for the quick reply.  Should I post a message again next week once Min is available again?<div><br></div><div>I guess IPython-User should not be used anymore?</div><div><br></div><div>Thanks,</div><div>
William.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 August 2014 18:47, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi William,<br><br></div>I don't think there should be any problem with using DirectView.execute() for this. Min, who's the expert on IPython.parallel, is away at the moment, but he should be able to give you a proper answer when he gets back in a couple of days.<br>


<br></div>Thanks,<br>Thomas<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 12 August 2014 09:43, William Shipman <span dir="ltr"><<a href="mailto:shipman.william@gmail.com" target="_blank">shipman.william@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div class="gmail_quote"><div dir="ltr">I have looked through the documentation about importing modules on IPython Parallel worker processes, and it seems imports of the form "import foo as bar" are not supported.  However, I found that using DirectView.execute allows me to get around this.  Is this safe, if not what can go wrong?<div>




<br></div><div>Here's the code I'm using to import part of the dateutil library and :<div><br></div><div>    from IPython.parallel import Client<br></div><div>    ipython_client = Client()</div><div>    dview = ipython_client.direct_view()</div>




<div>    dview.execute('from dateutil import parser as dtparser')</div><div><br></div><div>I am only using on my local PC, not a cluster.  After executing the above I can happily run code that uses dtparser using dview.map_sync.  I can rewrite my code to avoid doing this but I'd like to know why I shouldn't use this method.</div>




</div><div><br></div><div>Thanks in advance.</div></div>
</div><br></div></div><div>P.S. I posted this to IPython-User but that mailing list seems not to be active.  I anyone is receiving this for a second time, I apologize.</div></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>