<div dir="ltr">You cannot reliably reload code in the Python shell. Restart your shell to use updated code.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 30, 2017 at 4:42 AM, Jeffrey Levesque via Flask <span dir="ltr"><<a href="mailto:flask@python.org" target="_blank">flask@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Graeme,<br>
<br>
I'm on my cell, so not very good for typing.  This is the flask unit testing method I use:<br>
<br>
- <a href="https://www.quora.com/What-is-the-best-python-test-framework/answer/Jeff-Levesque" rel="noreferrer" target="_blank">https://www.quora.com/What-is-<wbr>the-best-python-test-<wbr>framework/answer/Jeff-Levesque</a><br>
<br>
Granted, I'd look at the repositories master branch, since minor things may have changed.  Also, if you find my approach is bad, please correct me - input is always great.<br>
<br>
<br>
Thank you,<br>
<br>
Jeff Levesque<br>
<a href="https://github.com/jeff1evesque" rel="noreferrer" target="_blank">https://github.com/<wbr>jeff1evesque</a><br>
<div class="HOEnZb"><div class="h5"><br>
> On Jan 30, 2017, at 6:47 AM, Graeme Pillemer <<a href="mailto:gpillemer@gmail.com">gpillemer@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> I often use the ipython shell in Flask-script when developing to validate code snippets and debug my flask models. Overall it works great.<br>
><br>
> Only one problem I've found with this workflow is that if you change some line of code, it will not 'autoreload' the code or model classes. So I find I do a lot of shutting down the shell and restarting it:<br>
><br>
> I've tried using the ipython autoreload magic function - which does not help<br>
><br>
> Wondering if anyone on this thread has experienced this and knows a work around<br>
><br>
> Thanks<br>
> ______________________________<wbr>_________________<br>
> Flask mailing list<br>
> <a href="mailto:Flask@python.org">Flask@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/flask</a><br>
<br>
______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/flask</a><br>
</div></div></blockquote></div><br></div>