Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44251 > unrolled thread
| Started by | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| First post | 2013-04-24 02:13 -0700 |
| Last post | 2013-04-24 19:18 +0000 |
| Articles | 12 — 7 participants |
Back to article view | Back to comp.lang.python
Using SciPy in application Roozbeh <roozbeh73@gmail.com> - 2013-04-24 02:13 -0700
Re: Using SciPy in application Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-04-24 12:04 +0100
Re: Using SciPy in application Robert Kern <robert.kern@gmail.com> - 2013-04-24 16:40 +0530
Re: Using SciPy in application Roozbeh <roozbeh73@gmail.com> - 2013-04-24 04:26 -0700
Re: Using SciPy in application Roozbeh <roozbeh73@gmail.com> - 2013-04-24 04:29 -0700
Re: Using SciPy in application Roozbeh <roozbeh73@gmail.com> - 2013-04-24 04:34 -0700
Re: Using SciPy in application Robert Kern <robert.kern@gmail.com> - 2013-04-24 17:10 +0530
Re: Using SciPy in application Maarten <maarten.sneep@knmi.nl> - 2013-04-24 07:49 -0700
Re: Using SciPy in application Alex van der Spek <zdoor@xs4all.nl> - 2013-04-24 11:57 +0000
Re: Using SciPy in application Miki Tebeka <miki.tebeka@gmail.com> - 2013-04-24 06:52 -0700
Re: Using SciPy in application Roozbeh <roozbeh73@gmail.com> - 2013-04-24 07:41 -0700
Re: Using SciPy in application Grant Edwards <invalid@invalid.invalid> - 2013-04-24 19:18 +0000
| From | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| Date | 2013-04-24 02:13 -0700 |
| Subject | Using SciPy in application |
| Message-ID | <437ea69e-fa1b-42e9-a09a-23b6f94182f2@googlegroups.com> |
Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help
[toc] | [next] | [standalone]
| From | Oscar Benjamin <oscar.j.benjamin@gmail.com> |
|---|---|
| Date | 2013-04-24 12:04 +0100 |
| Message-ID | <mailman.1015.1366801497.3114.python-list@python.org> |
| In reply to | #44251 |
On 24 April 2013 10:13, Roozbeh <roozbeh73@gmail.com> wrote: > > I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? They cannot use the function from scipy if scipy is not installed. There are three ways round this problem: 1) Rewrite the interpolation function you need in your own code. 2) Require the user to install scipy. 3) Require the user to install some other package that has interpolation functions. Rewriting the interpolation function is probably not that difficult depending on the type of interpolation you're using. Oscar
[toc] | [prev] | [next] | [standalone]
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Date | 2013-04-24 16:40 +0530 |
| Message-ID | <mailman.1016.1366801871.3114.python-list@python.org> |
| In reply to | #44251 |
On 2013-04-24 16:34, Oscar Benjamin wrote: > On 24 April 2013 10:13, Roozbeh <roozbeh73@gmail.com> wrote: >> >> I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? > > They cannot use the function from scipy if scipy is not installed. > There are three ways round this problem: > 1) Rewrite the interpolation function you need in your own code. Variant: 1.a) Copy the interpolation code from scipy into your own code. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
[toc] | [prev] | [next] | [standalone]
| From | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| Date | 2013-04-24 04:26 -0700 |
| Message-ID | <3f26ef88-c1ab-4acc-b153-f47dbda1b27e@googlegroups.com> |
| In reply to | #44251 |
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help
[toc] | [prev] | [next] | [standalone]
| From | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| Date | 2013-04-24 04:29 -0700 |
| Message-ID | <c6deef33-5084-4690-98a3-06334c24d7dd@googlegroups.com> |
| In reply to | #44251 |
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help The thing is that the SciPy code for spline interpolation imports NumPy which also I don't want to use. So, I think I will have to write the code myself I guess.
[toc] | [prev] | [next] | [standalone]
| From | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| Date | 2013-04-24 04:34 -0700 |
| Message-ID | <411a5ceb-b575-4217-b39b-504fdef4b4d4@googlegroups.com> |
| In reply to | #44251 |
On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help Any idea where can I find the recipe for the spline interpolation that does not rely on NumPy and/or SciPy and is written pure Python (no C code)?
[toc] | [prev] | [next] | [standalone]
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Date | 2013-04-24 17:10 +0530 |
| Message-ID | <mailman.1017.1366803622.3114.python-list@python.org> |
| In reply to | #44259 |
On 2013-04-24 17:04, Roozbeh wrote: > On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: >> Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help > > Any idea where can I find the recipe for the spline interpolation that does not rely on NumPy and/or SciPy and is written pure Python (no C code)? If Google can't find it, it probably doesn't exist. Very few people would do this without numpy. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
[toc] | [prev] | [next] | [standalone]
| From | Maarten <maarten.sneep@knmi.nl> |
|---|---|
| Date | 2013-04-24 07:49 -0700 |
| Message-ID | <0c70e98a-aa20-4128-9389-80c56c0e4c21@googlegroups.com> |
| In reply to | #44260 |
On Wednesday, April 24, 2013 1:40:14 PM UTC+2, Robert Kern wrote: > On 2013-04-24 17:04, Roozbeh wrote: > > > On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: > > >> Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this problem? Thanks in advance for your help > > > Any idea where can I find the recipe for the spline interpolation that does not rely on NumPy and/or SciPy and is written pure Python (no C code)? > > > If Google can't find it, it probably doesn't exist. Very few people would do this without numpy. A trivial 'pure python spline' google search yields this: http://urchin.earth.li/~twic/splines.py (Warning: old code, python 2.2 era). Maarten
[toc] | [prev] | [next] | [standalone]
| From | Alex van der Spek <zdoor@xs4all.nl> |
|---|---|
| Date | 2013-04-24 11:57 +0000 |
| Message-ID | <5177c8b3$0$15972$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #44259 |
On Wed, 24 Apr 2013 04:34:44 -0700, Roozbeh wrote: The scipy interpolation routines (splev, splrep, etc.) are on netlib: http://www.netlib.org/dierckx/ This gives you FORTRAN source codes which you will have to compile yourself to either a DLL or an SO. Call them from python using ctypes. I have done that for a number of the dierckx routines. No problems at all. Hope this helps, Alex van der Spek > On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: >> Hi all, I want to use spline interpolation function from SciPy in an >> application and at the same time, I don't want the end user to have to >> install SciPy separately. Is there a way around this problem? Thanks in >> advance for your help > > Any idea where can I find the recipe for the spline interpolation that > does not rely on NumPy and/or SciPy and is written pure Python (no C > code)?
[toc] | [prev] | [next] | [standalone]
| From | Miki Tebeka <miki.tebeka@gmail.com> |
|---|---|
| Date | 2013-04-24 06:52 -0700 |
| Message-ID | <4038d07a-abcf-4e23-9bd7-a2dfc8293f59@googlegroups.com> |
| In reply to | #44251 |
> I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. You can pack you application with py2exe, pyinstaller ... and then they won't even need to install Python. Another option (which is not always possible) is to make you application a web site and then only you need to install SciPy on the server.
[toc] | [prev] | [next] | [standalone]
| From | Roozbeh <roozbeh73@gmail.com> |
|---|---|
| Date | 2013-04-24 07:41 -0700 |
| Message-ID | <57adee3e-986d-4b23-bf2c-38bd3b0c8e4f@googlegroups.com> |
| In reply to | #44267 |
On Wednesday, April 24, 2013 3:52:50 PM UTC+2, Miki Tebeka wrote: > > I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. You can pack you application with py2exe, pyinstaller ... and then they won't even need to install Python. Another option (which is not always possible) is to make you application a web site and then only you need to install SciPy on the server. I thought about the py2exe option but the problem is, this application is a plug-in written for Abaqus CAE and hence it will use the python version that comes with Abaqus CAE distribution and Abaqus must be able to compile the Python codes every time on the start-up otherwise it won't recognize the plug-in and thats why SciPy and NumPy are also not an option. I guess as Alex said, I will have to use DLLs or write it myself.
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-04-24 19:18 +0000 |
| Message-ID | <kl9b6g$ajs$1@reader1.panix.com> |
| In reply to | #44251 |
On 2013-04-24, Roozbeh <roozbeh73@gmail.com> wrote:
> I want to use spline interpolation function from SciPy in an
> application and at the same time, I don't want the end user to have
> to install SciPy separately. Is there a way around this problem?
You could bundle you app along with python and SciPy and whatever
other libraries are required using py2exe, py2app, cx_Freeze, Freeze,
etc.
--
Grant Edwards grant.b.edwards Yow! JAPAN is a WONDERFUL
at planet -- I wonder if we'll
gmail.com ever reach their level of
COMPARATIVE SHOPPING ...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web