From m10fayed at gmail.com  Mon Jan 27 00:03:55 2020
From: m10fayed at gmail.com (Muhammad Fayed)
Date: Mon, 27 Jan 2020 07:03:55 +0200
Subject: [IPython-dev] How to import python 7.x into python3 script
Message-ID: <9143D0A4-1723-4CDE-8B25-11B25B079C41@gmail.com>

Hi,
Hope my mail find you well,
First, I want to make use of some python magic commands in my python script. How I could do it?
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? 
Thank you so much,
Sincerely,
Mohamed E. Fayed 

From steve at holdenweb.com  Mon Jan 27 02:53:34 2020
From: steve at holdenweb.com (Steve Holden)
Date: Mon, 27 Jan 2020 07:53:34 +0000
Subject: [IPython-dev] How to import python 7.x into python3 script
In-Reply-To: <9143D0A4-1723-4CDE-8B25-11B25B079C41@gmail.com>
References: <9143D0A4-1723-4CDE-8B25-11B25B079C41@gmail.com>
Message-ID: <CAMofdRDX_-i=gs8=dXCJs3wcOB8nO7NTFW4UV--=f=Jhc7928w@mail.gmail.com>

Hi there,

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
https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script,
which details ways to make magics available inside scripting.

The auto-response message should also give you  many possible sources for
further answers to your questions.

Kind regards,
Steve


On Mon, Jan 27, 2020 at 5:04 AM Muhammad Fayed <m10fayed at gmail.com> wrote:

> Hi,
> Hope my mail find you well,
> First, I want to make use of some python magic commands in my python
> script. How I could do it?
> 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?
> Thank you so much,
> Sincerely,
> Mohamed E. Fayed
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20200127/80310eaf/attachment.html>

From m10fayed at gmail.com  Mon Jan 27 11:46:19 2020
From: m10fayed at gmail.com (Muhammad Fayed)
Date: Mon, 27 Jan 2020 18:46:19 +0200
Subject: [IPython-dev] How to import python 7.x into python3 script
In-Reply-To: <CAMofdRDX_-i=gs8=dXCJs3wcOB8nO7NTFW4UV--=f=Jhc7928w@mail.gmail.com>
References: <9143D0A4-1723-4CDE-8B25-11B25B079C41@gmail.com>
 <CAMofdRDX_-i=gs8=dXCJs3wcOB8nO7NTFW4UV--=f=Jhc7928w@mail.gmail.com>
Message-ID: <4CB44FBB-2BD0-4DAC-B6F4-BD5DF184CAC3@gmail.com>

Sorry for my late reply,
I?ve tried ?import IPython.ipapi?, but I get module not found error.  
I think I?ll try to hack around my needs.
Thank you so much,
Sincerely,
Mohamed E. Fayed 

> On Jan 27, 2020, at 9:53 AM, Steve Holden <steve at holdenweb.com> wrote:
> 
> Hi there,
> 
> 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 https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script <https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script>, which details ways to make magics available inside scripting.
> 
> The auto-response message should also give you  many possible sources for further answers to your questions.
> 
> Kind regards,
> Steve
> 
> 
> On Mon, Jan 27, 2020 at 5:04 AM Muhammad Fayed <m10fayed at gmail.com <mailto:m10fayed at gmail.com>> wrote:
> Hi,
> Hope my mail find you well,
> First, I want to make use of some python magic commands in my python script. How I could do it?
> 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? 
> Thank you so much,
> Sincerely,
> Mohamed E. Fayed 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org <mailto:IPython-dev at python.org>
> https://mail.python.org/mailman/listinfo/ipython-dev <https://mail.python.org/mailman/listinfo/ipython-dev>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20200127/589e6048/attachment.html>

From chris.barker at noaa.gov  Mon Jan 27 11:59:54 2020
From: chris.barker at noaa.gov (Chris Barker - NOAA Federal)
Date: Mon, 27 Jan 2020 08:59:54 -0800
Subject: [IPython-dev] How to import python 7.x into python3 script
In-Reply-To: <4CB44FBB-2BD0-4DAC-B6F4-BD5DF184CAC3@gmail.com>
References: <4CB44FBB-2BD0-4DAC-B6F4-BD5DF184CAC3@gmail.com>
Message-ID: <CALGmxE+Qn8EChtf-fOi0ZFaK_XrvTr_yoa3Da+6_EeFo_db01w@mail.gmail.com>

I?m not sure I understand the question, but I don?t think you CAN use
iPytjon magic commands in scripts, they are designed to be used in the
interactive environment.

That being said, there may be some Particular commands? functionality
available through the iPython API.

I, for one, would love to be able to put something like %timeit in a
script, if anyone knows how to do that.

-CHB

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115 <x-apple-data-detectors://6/1>       (206) 526-6317
main reception

On Jan 27, 2020, at 8:46 AM, Muhammad Fayed <m10fayed at gmail.com> wrote:

?Sorry for my late reply,
I?ve tried ?import IPython.ipapi?, but I get module not found error.
I think I?ll try to hack around my needs.
Thank you so much,
Sincerely,
Mohamed E. Fayed

On Jan 27, 2020, at 9:53 AM, Steve Holden <steve at holdenweb.com> wrote:

Hi there,

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
https://stackoverflow.com/questions/10361206/how-to-run-an-ipython-magic-from-a-script-or-timing-a-python-script,
which details ways to make magics available inside scripting.

The auto-response message should also give you  many possible sources for
further answers to your questions.

Kind regards,
Steve


On Mon, Jan 27, 2020 at 5:04 AM Muhammad Fayed <m10fayed at gmail.com> wrote:

> Hi,
> Hope my mail find you well,
> First, I want to make use of some python magic commands in my python
> script. How I could do it?
> 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?
> Thank you so much,
> Sincerely,
> Mohamed E. Fayed
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
_______________________________________________
IPython-dev mailing list
IPython-dev at python.org
https://mail.python.org/mailman/listinfo/ipython-dev


_______________________________________________
IPython-dev mailing list
IPython-dev at python.org
https://mail.python.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20200127/5658c072/attachment-0001.html>