473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Mathematica-style notebook in Python

I was wondering whether anyone has considered writing a
Mathematica-style notebook in Python. I use Python to do a lot of
scientific analysis, and I really like it's power. But what I always
envy about my friends who use Mathematica is the notebooks they
generate, which contain plots, annotations, and other information, in
a format that can be reloaded easily when you want to check your work.

Before I start doing something like this, has anyone else considered
it?
Jul 18 '05 #1
2 2412
ri*********@yahoo.com (Rick Muller) wrote in message news:<5e**************************@posting.google. com>...
I was wondering whether anyone has considered writing a
Mathematica-style notebook in Python. I use Python to do a lot of
scientific analysis, and I really like it's power. But what I always
envy about my friends who use Mathematica is the notebooks they
generate, which contain plots, annotations, and other information, in
a format that can be reloaded easily when you want to check your work.

Before I start doing something like this, has anyone else considered
it?


I have been working the last several months on just that issue. It is
a library that contains interactive plotting, block diagram, imaging,
and text rendering capabilities. It is written in 100% python. It
currently can use either wxWindows or pygame to display its diagrams
(I am working on TK now ... others to come). The nice thing about it
is no matter what underlying GUI library you use to display the
diagram it always looks the same.

I am about ready to release the second version of the library (its
called Pyxel). BTW its opensource - free for commercial and
opensource use.

I can send anyone the code that wants to preview it before the
release. Just drop me a line. I could use some help on the plotting
aspect, if anyone is interested.

Thanks,
Erik Lechak
pr*****@netzero.net
Jul 18 '05 #2
In article <1f**************************@posting.google.com >, Erik Lechak wrote:
ri*********@yahoo.com (Rick Muller) wrote in message news:<5e**************************@posting.google. com>...
I was wondering whether anyone has considered writing a
Mathematica-style notebook in Python. I use Python to do a lot of
scientific analysis, and I really like it's power. But what I always
envy about my friends who use Mathematica is the notebooks they
generate, which contain plots, annotations, and other information, in
a format that can be reloaded easily when you want to check your work.

Before I start doing something like this, has anyone else considered
it?
You could use my "Py-ML" library which provides Mathematica support in Python.

http://py-ml.sourceforge.net/

You should (in theory- I never tried it) be able to create notebooks programmatically
and control them from Python.

Here's an example of using Py-ML:
function = MathematicaFunction("Plus",MathematicaInteger(1),[MathematicaSymbol("x")]) print function Plus[1,x]
expression = MathematicaExpression(function)
e = m.evaluate(expression)
result= m.process()
Plus = MathematicaFunction("Plus")
function = Plus(1+"x")
print function Plus[1,x]
or x=MathematicaSymbol("x")
function = 1+x
print function

Plus[1,x]
More complicated functions, such as integrals, are entered easily.
The integral of x^2 with x varying from 0 to 2:
function = Integrate(Power("x",2), List("x",0,2))

.... unfortunately, I don't really use Mathematica any more (it's just too expensive and it never simplified
any interesting integrals for me), so Py-ML isn't really an active software project any more.
There are a lot of interesting opportunities for further development.

Dave
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jelle | last post by:
I now some hostility to functional programming is flaming up now and then; still could someone suggest me a pythonic equivalent for Mathematica's FixedPoint function? For those not familiar with...
19
by: newbiecpp | last post by:
I am looking for a C++ unit testing program. I googled and found there are quite a few there, such as CppTest, C++Test, and DejaGnu. Can someone give me a recommendation among these programs? I...
17
by: cwdjrxyz | last post by:
Javascript has a very small math function list. However there is no reason that this list can not be extended greatly. Speed is not an issue, unless you nest complicated calculations several levels...
1
by: Siddharth Jain | last post by:
Hello I am using Visual Studio 2005 beta and Mathematica 5.0. I was trying to make an application (in c#) which would allow me to use Mathematica functions like Plot, ListPlot etc and show the...
1
by: Siddharth Jain | last post by:
Hi I am using Mathematica 5.0 to make a plot in Visual Studio 2005 beta. Each time, a window of the kernel opens. I want the window to close once I close my form. Can someone please guide me on...
23
by: Xah Lee | last post by:
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a...
5
ChaseCox
by: ChaseCox | last post by:
I know this site is for developers only, but what are the chances with getting a Fortan and a MatLab section started? I am using these more and more often in my research, and I am sure more people...
30
by: Xah Lee | last post by:
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 In LISP languages, they use a notation like “(+ 1 2)” to mean “1+2”....
97
by: xahlee | last post by:
I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. • Ten Thousand Hours of Design...
1
by: Piotrekk | last post by:
Hi I have a strange problem. Here is some input data before I describe the problem. 1. RemoteClass (Mathematica) is compiled into dll and put to GAC 2. Server remoting configuration is done by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.