Mathematica How To create an .exe file from Mathematica ?

  • Thread starter Thread starter parazit
  • Start date Start date
  • Tags Tags
    File Mathematica
AI Thread Summary
Creating an executable (.exe) file directly from Mathematica code is not supported; however, users can export their work as a Computable Document Format (CDF) file, which allows for interactive elements without needing Mathematica installed. To deploy a notebook in Mathematica 8.0.4 or later, users can utilize the "File -> Deploy" option, especially for interactive content using the Manipulate function. For older versions, CDF conversion can be done online through Wolfram's website, although it requires a license and email submission. A free CDF Player is necessary to run the CDF files on a PC or in a web browser. This method provides a viable alternative for sharing Mathematica projects interactively.
parazit
Messages
75
Reaction score
3
How To create an .exe file from Mathematica code ?

Hi,

I just wonder is there a way to create an exe file from a Mathematica code, that runs just with double-clicks on it ?

When it starts running it may ask some values for some variables and when one of them entered the others and the result will be calculated automatically. (The variableas are depens each others)

Is that possible and if yes please mention a little bit how?
 
Last edited:
Physics news on Phys.org
I'm not sure if mathematica can export to *.exe. What you're probably looking for is a cdf file. It's a file that can be played without mathematica (it's used on wolfram demonstration project [PLAIN]http://demonstrations.wolfram.com/).[/PLAIN] If you have mathematica 8.0.4 notebooks can be deployed directly by clicking on File -> Deploy ... so make a notebook write something you want to .. something with Manipulate[] if you want to have interactive stuff e.g.

Manipulate[Plot[a*x^2,{x,0,3},AspectRatio-> Automatic,PlotStyle-> {Thick,Magenta}],{a,-5,5}]

Then go to File-> Deploy. You need a free copy of CDFPlayer (available from wolfram's website) to play the cdf on a PC without mathematica (or in a web browser like on demonstrations).

If you have an older mathematica copy (like 8.0.0 or even older) you won't have the Deploy thing in your File tab. In that case, you can convert your nbs to cdfs online , here http://www.wolfram.com/solutions/interactivedeployment/publish/
You need to enter license and email and all that annoying stuff but it should work ...
 
Last edited by a moderator:
Back
Top