maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish (https://talk.maemo.org/showthread.php?t=78568)

mr_pingu 2013-12-04 21:41

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & 6
 
Quote:

Originally Posted by rcolistete (Post 1365408)
Some issues about SymPy 0.7.3 for Maemo 5 :
- "Plot()" using PyGlet has some bug that doesn't open the plotting window (this bug also happens on PC's, no only on Nokia N900). This issue was reported to SymPy group and solved by using some SymPy 0.7.2 code for PyGlet "Plot()";
- the new plotting module on SymPy 0.7.3 needs MatPlotLib >= 1.1.0, but Maemo 5 currently has MatPlotLib 1.0.0, so it doesn't work. I will later try to package MatPlotLib 1.2/1.3 for Maemo 5, solving this issue.

Sorry to ask but what's the progress on getting MatPlotLib working for maemo 5?

And many thanks for getting this running on our awesome devices. I am more of a Maple user but for the quick mobile tasks this sympy is awesome. Thanks

rcolistete 2013-12-05 01:02

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & 6
 
Quote:

Originally Posted by mr_pingu (Post 1392708)
Sorry to ask but what's the progress on getting MatPlotLib working for maemo 5?

It is in my to-do list. As well as SymPy 0.7.4 (to be released) using Python 2.7 on Maemo 5.

khan.orak 2013-12-05 04:24

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & 6
 
will you be porting these awesome apps to jolla?

rcolistete 2013-12-05 04:33

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & 6
 
Quote:

Originally Posted by khan.orak (Post 1392741)
will you be porting these awesome apps to jolla?

SymPy 0.7.3 and IPython 0.13.2 are already available for Sailfish (& Mer & Nemo). See the topic "Python (modules) on Mer/Nemo". IPython 0.13.2 has terminal console and notebook interface should work, see the screenshots (on Sailfish emulator).

rcolistete 2014-05-05 01:28

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & 6
 
SymPy 0.7.5 (22/02/2014) is now available for Sailfish (& Mer & Nemo) at OpenRepos.net.

To install SymPy 0.7.5 on Sailfish, see the 1st post.

Screenshot of Terminal running IPython (2.0.0) with SymPy 0.7.5 on Nexus 4 with Sailfish OS 1.0.5.16. Mathematical symbols are not show correctly due to lack of full Unicode support. A workaround is to disable Unicode with "init_printing (use_unicode=false)".
http://www.RobertoColistete.net/symp...SailfishOS.jpg

Nexus 4 running SymPy with IPython 2.1.0 Notebook interface on Webcat web browser :
http://www.robertocolistete.net/ipyt...SailfishOS.jpg

rcolistete 2014-05-16 17:45

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
SymPy 0.7.5 (22/02/2014) for Python 3 is also available for Sailfish (& Mer & Nemo) at OpenRepos.net.

About SymPy 0.7.5 for Python 2.7 on Sailfish, see the post above.

rcolistete 2014-06-17 19:20

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Added SymPy for Sailfish in 1st post, with how to install, screenshots, etc.

rcolistete 2014-09-25 01:56

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
SymPy 0.7.4.1 (15/12/2013) and SymPy 0.7.5 (22/02/2014) are now available for MeeGo Harmattan at OpenRepos.net.

To install SymPy 0.7.5 on MeeGo Harmattan, see the 1st post.

irulestar 2014-09-26 09:23

I open the Py notebook. But it says no browser runable...
What does it mean n how to run it!?

Ancelad 2014-09-26 09:55

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
:D Just open grob

irulestar 2014-09-26 10:41

Quote:

Originally Posted by Ancelad (Post 1440638)
Just open grob

What!? I dun understand. Please more step :)

irulestar 2014-09-26 10:49

Iv try open grob.
The same notice

[NotebookApp] Using existing profile dir: u'/home/user/.config/ipython/profile_default'
[NotebookApp] Serving notebooks from /home/user
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
[NotebookApp] Use Control-C to stop this server and shut down all kernels.
[NotebookApp] No web browser found: could not locate runnable browser.

rcolistete 2014-09-26 15:00

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Quote:

Originally Posted by irulestar (Post 1440633)
I open the Py notebook. But it says no browser runable...
What does it mean n how to run it!?

See the 1st post in the IPython for MeeGo Harmattan topic :
Quote:

So you can open a web browser and point it to "http://127.0.0.1:8888/".

Or you can configure the $BROWSER variable by choosing one web browser, using Terminal and typing "export BROWSER=<pathname-to-web-browser>". To make this configuration automatic for :
- MeeGo Harmattan native web browser, type in Terminal :
$ echo 'export BROWSER=/usr/bin/grob' >> ~/.profile
- Fennec/Firefox from Nokia Store, type :
$ echo 'export BROWSER=/opt/fennec/lib/fennec-15.0/fennec' >> ~/.profile
- Opera Mobile, type :
$ echo 'export BROWSER=/opt/operamobile-labs/bin/operamobile-labs' >> ~/.profile
Then reboot your Nokia N9 so this configuration will take effect.

irulestar 2014-09-29 10:16

[HELP]
Everytime I Try %pylab inline, i always got Error message...
What I have lost!?
Please help
#N9

rcolistete 2014-09-29 10:49

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Quote:

Originally Posted by irulestar (Post 1440977)
[HELP]
Everytime I Try %pylab inline, i always got Error message...
What I have lost!?
Please help
#N9

PyLab = NumPy + MatPlotLib. So install NumPy and MatPlotLib. MatPlotLib will be updated in the following days and it will be easier to install (via Warehouse).

irulestar 2014-09-30 00:55

Quote:

Originally Posted by rcolistete (Post 1440984)
PyLab = NumPy + MatPlotLib. So install NumPy and MatPlotLib. MatPlotLib will be updated in the following days and it will be easier to install (via Warehouse).

Still cant use the Plot!?
I have tried those tutorial....
Can Anyone give me a link for clear install MatPlotLib and use this SymPy!?
Pleaseeee... :(

irulestar 2014-09-30 01:24

02:32:54 MSK 2012 armv7l GNU/Linux
In [2]:

%pylab inline
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-550caa57204a> in <module>()
----> 1 get_ipython().magic(u'pylab inline')

/usr/lib/pymodules/python2.6/IPython/core/interactiveshell.pyc in magic(self, arg_s)
2134 magic_name, _, magic_arg_s = arg_s.partition(' ')
2135 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2136 return self.run_line_magic(magic_name, magic_arg_s)
2137
2138 #-------------------------------------------------------------------------

/usr/lib/pymodules/python2.6/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
2060 args.append(sys._getframe(stack_depth).f_locals)
2061 with self.builtin_trap:
-> 2062 result = fn(*args)
2063 return result
2064

/usr/lib/pymodules/python2.6/IPython/core/magics/pylab.pyc in pylab(self, parameter_s)

/usr/lib/pymodules/python2.6/IPython/core/magic.pyc in <lambda>(f, *a, **k)
189 # but it's overkill for just that one bit of state.
190 def magic_deco(arg):
--> 191 call = lambda f, *a, **k: f(*a, **k)
192
193 if callable(arg):

/usr/lib/pymodules/python2.6/IPython/core/magics/pylab.pyc in pylab(self, parameter_s)
86 import_all_status = True
87
---> 88 self.shell.enable_pylab(parameter_s, import_all=import_all_status)

/usr/lib/pymodules/python2.6/IPython/core/interactiveshell.pyc in enable_pylab(self, gui, import_all)
2782 ns = {}
2783 try:
-> 2784 gui = pylab_activate(ns, gui, import_all, self)
2785 except KeyError:
2786 error("Backend %r not supported" % gui)

/usr/lib/pymodules/python2.6/IPython/core/pylabtools.pyc in pylab_activate(user_ns, gui, import_all, shell)
328 """
329 gui, backend = find_gui_and_backend(gui)
--> 330 activate_matplotlib(backend)
331 import_pylab(user_ns, import_all)
332 if shell is not None:

/usr/lib/pymodules/python2.6/IPython/core/pylabtools.pyc in activate_matplotlib(backend)
221 # This must be imported last in the matplotlib series, after
222 # backend/interactivity choices have been made
--> 223 import matplotlib.pylab as pylab
224
225 # XXX For now leave this commented out, but depending on discussions with

/usr/lib/pymodules/python2.6/matplotlib/pylab.py in <module>()
220 silent_list, iterable, dedent
221
--> 222 from matplotlib import mpl # pulls in most modules
223
224 from matplotlib.dates import date2num, num2date,\

/usr/lib/pymodules/python2.6/matplotlib/mpl.py in <module>()
1 from matplotlib import artist
2 from matplotlib import axis
----> 3 from matplotlib import axes
4 from matplotlib import cbook
5 from matplotlib import collections

/usr/lib/pymodules/python2.6/matplotlib/axes.py in <module>()
17 import matplotlib.colors as mcolors
18 import matplotlib.contour as mcontour
---> 19 import matplotlib.dates as _ # <-registers a date unit converter
20 from matplotlib import docstring
21 import matplotlib.font_manager as font_manager

/usr/lib/pymodules/python2.6/matplotlib/dates.py in <module>()
120 import matplotlib.ticker as ticker
121
--> 122 from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
123 MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY
124 from dateutil.relativedelta import relativedelta

ImportError: No module named dateutil.rrule

In [ ]:


I get those message when i type %pylab inline

rcolistete 2014-09-30 19:12

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Quote:

Originally Posted by irulestar (Post 1441072)
02:32:54 MSK 2012 armv7l GNU/Linux
In [2]:

%pylab inline

...

/usr/lib/pymodules/python2.6/matplotlib/axes.py in <module>()
17 import matplotlib.colors as mcolors
18 import matplotlib.contour as mcontour
---> 19 import matplotlib.dates as _ # <-registers a date unit converter
20 from matplotlib import docstring
21 import matplotlib.font_manager as font_manager

/usr/lib/pymodules/python2.6/matplotlib/dates.py in <module>()
120 import matplotlib.ticker as ticker
121
--> 122 from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
123 MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY
124 from dateutil.relativedelta import relativedelta

ImportError: No module named dateutil.rrule

In [ ]:


I get those message when i type %pylab inline

Thanks, I've answerd in the MatPlotLib topic because it is a MatPlotLib bug (my fault when packaging v1.2.1).

rcolistete 2016-08-16 13:32

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
SymPy 0.7.6.1 (03/09/2015) is now available for Sailfish (& Mer & Nemo) at OpenRepos.net.

Python 3 version of SymPy 0.7.6.1 is also available in OpenRepos.net.

To install SymPy 0.7.6.1 on Sailfish, see the 1st post.

Screenshot of Terminal running IPython (2.4.1) with SymPy 0.7.6.1 (for Python 2.7.9) on Jolla C with Sailfish OS 2.0.2.48.
http://www.RobertoColistete.net/symp...al-ipython.jpg

rcolistete 2016-08-16 14:07

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Only in interactive mode (using e.g., "isympy") that SymPy >= 0.7.3 automatically loads PyLab (NumPy & MatPlotLib).

Sailfish 2.0.2.48 with Python 2.7.9, IPython 2.3.0, NumPy 1.9.1 and MatPlotLib 1.4.1.

Benchmarks of SymPy 0.7.5 :

* Jolla (1), 2-core Krait @ 1.5 GHz :
- "from sympy import *" : 2.0s;
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 3.4s.

* Jolla C, 4-core Cortex A7 @ 1.3 GHz :
- "from sympy import *" : 2.0s;
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 3.2s.

* Jolla Tablet, 4-core Atom Z3735F @ 1.33 GHz :
- "from sympy import *" : 1.1s;
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 1.7s.

Benchmarks of SymPy 0.7.6.1 :

* Jolla (1), 2-core Krait @ 1.5 GHz :
- "from sympy import *" : 2.2s;
- isympy in X Terminal : 5.7s (with PyLab), 4.8s (without MatPlotLib), 4.5s (without PyLab);
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 5.0s.

* Jolla C, 4-core Cortex A7 @ 1.3 GHz :
- "from sympy import *" : 2.2s;
- isympy in X Terminal : 5.9s (with PyLab), 4.5s (without MatPlotLib), 4.2s (without PyLab);
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 4.7s.

* Jolla Tablet, 4-core Atom Z3735F @ 1.33 GHz :
- "from sympy import *" : 1.1s;
- isympy in X Terminal : 3.3s (with PyLab), 2.6s (without MatPlotLib), 2.5s (without PyLab);
- "integrate(x**5/(alpha*x**2+beta)**2,x)" : 2.5s.

boundinsheets 2017-07-30 11:15

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
funny thing, registered just to post this. anyway...

first of all, you did a great job. really enjoying using sympy.

secondly, i have a problem, there are no numbers or anything else on plot except curve itself and axis. i've tried everything but it didn't help.

and finally, i really need lie algebra module. is there anyway to upgrade to sympy 1.1 or something like that? i'm using n900 with maemo 5.

thank you in advance for answer!

rcolistete 2017-07-30 13:33

Re: [Announce] SymPy (Computer Algebra System) for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
Quote:

Originally Posted by boundinsheets (Post 1531622)
secondly, i have a problem, there are no numbers or anything else on plot except curve itself and axis. i've tried everything but it didn't help.

Please show the plot command used.

Quote:

Originally Posted by boundinsheets (Post 1531622)
and finally, i really need lie algebra module. is there anyway to upgrade to sympy 1.1 or something like that? i'm using n900 with maemo 5.

See the 1st post :
Quote:

- for Maemo 4 Diablo and Maemo 5 Fremantle : v0.7.3 (13/07/2013) is available in their repositories, this is the latest version compatible with Python 2.5;
One option would be to use Python 2.7 from community and package SymPy 1.1 with this dependency.


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8