<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sorry for my late reply,<div class="">I’ve tried “import IPython.ipapi”, but I get module not found error.  </div><div class="">I think I’ll try to hack around my needs.</div><div class="">Thank you so much,</div><div class="">Sincerely,</div><div class="">Mohamed E. Fayed <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 27, 2020, at 9:53 AM, Steve Holden <<a href="mailto:steve@holdenweb.com" class="">steve@holdenweb.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Hi there,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Thanks for your note. Unfortunately "Python 7.x" does not allow us to identify the component you are trying to install. As far as magic commands go, you msy get some assistance from the page at <a href="https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script" class="">https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script</a>, which details ways to make magics available inside scripting.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">The auto-response message should also give you  many possible sources for further answers to your questions.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Kind regards,</div><div dir="ltr" class="">Steve<br class=""></div></div></div></div></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 27, 2020 at 5:04 AM Muhammad Fayed <<a href="mailto:m10fayed@gmail.com" class="">m10fayed@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br class="">
Hope my mail find you well,<br class="">
First, I want to make use of some python magic commands in my python script. How I could do it?<br class="">
Second, What if I’ll reuse the function in the script in ani python session, will it work or not? If not, what is the difference? <br class="">
Thank you so much,<br class="">
Sincerely,<br class="">
Mohamed E. Fayed <br class="">
_______________________________________________<br class="">
IPython-dev mailing list<br class="">
<a href="mailto:IPython-dev@python.org" target="_blank" class="">IPython-dev@python.org</a><br class="">
<a href="https://mail.python.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank" class="">https://mail.python.org/mailman/listinfo/ipython-dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">IPython-dev mailing list<br class=""><a href="mailto:IPython-dev@python.org" class="">IPython-dev@python.org</a><br class="">https://mail.python.org/mailman/listinfo/ipython-dev<br class=""></div></blockquote></div><br class=""></div></body></html>