Tag Info

Hot answers tagged

20

Actually this is just meant as a side note to your own answer, but it became too long for a comment. As you can guess I'm interested in this myself and have done some testing, most of what I mentioned is from that experience. It has been reported that there would be differences in what the player would allow depending on whether Mathematica is installed or ...


20

Updated: presentations are now available from the Wolfram CDF Virtual Workshop. General info on the CDF format/creation/deployment: presentations of the CDF Virtual Workshop (4.24.2012) CDF FAQ download the CDF InfoKit Create a CDF File (Documentation Center) 1. Manipulate or DynamicModule? Though it is often stated that the interactive content in a ...


18

With Version 9, CDF Player is officially supporting import via URL. This is currently the only way to bring any data into a web embedded CDF or notebook, regardless of license level. Other methods are being explored, particular for exchanging data with the surrounding DOM. Stay tuned for more information on this to come. Please consult the following table ...


14

Depending on the total size of the files, CDF may or may not be a good option. A file of a few MB is probably still ok, 10Mb or more is probably not. That said, this looks like a case for WebMathematica to me. It is fairly easy to set up, and looking at your description, you won't need an awful lot of interactivity (which, had you needed it, would be one ...


13

I am not aware of such functionality "out of the box", but you can use various symbol dependency frameworks (I have my version published here, although at present it does contain some bugs), to figure out a set of symbols being used. You will need a few auxiliary functions to extract all symbols used in a notebook, and prepare boxed form of the code for ...


12

Due to security restrictions some functions such as Import, Uncompress, or OS access functions cannot be used as a part of Demonstrations code, including the Initialization. So a generally great idea by @acl comment about compression will not work on Demonstrations site (but it's really ncie to use otherwise). This is what you get if you try to use ...


10

You cannot use CDF for this because you have textual import fields and these are not supported when you embed online. You will just get a big grey box. InputField cannot accept strings (non-numeric) for online CDFs unless you are Wolfram Research and can override it. (I'm guessing you don't want to pay many thousands for CDF Pro.) You also cannot import and ...


10

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file. You can write some simple instructions for users: Open the .m file you sent them Choose ...


9

One very simple option: install all packages into FileNameJoin[{$UserBaseDirectory, "Applications"}] It is trivial to write a script which will do that, and this is a platform-independent way of specifying a directory which always exists, and where Mathematica will always look for packages. As an alternative, you can give the user a choice of a ...


9

You cannot import data to a web embedded CDF: http://www.wolfram.com/player-pro/how-player-pro-compares.html ...that is to say in principle you can't. However if you read this thread: Deploying Mathematica Content Online you will note that @Jens demonstrated that it was possible to import data from a URL. However after investigating this I was told by ...


7

AFAIK there is nothing you need to do to deploy to Player Pro: you can just give away the notebook as it is. A user with Player Pro can then just shift-return-evaluate the input cells to run the code. The ony thing that can't be done within Player Pro is to edit the notebook, so you have to provide gui-elements for the input the user need to enter... As Mr. ...


7

You can use the following command to programmatically refresh the contents of the menus in Mathematica: MathLink`CallFrontEnd[FrontEnd`ResetMenusPacket[{Automatic, Automatic}]] This was mentioned by John Fultz in this MathGroup post as well as this answer.


7

You can use SaveDefinitions->True to do this. If you copy a Manipulate box created with this option set to an empty notebook and save this as CDF, it will contain all necessary definitions to let it stand alone. The use of Manipulate is a prerequisite for CDF deployments. More information here: All interactive content must be generated with the ...


5

"Any engine compatible with Servlet 2.4 or later, such as Apache Tomcat" http://www.wolfram.com/products/webmathematica/technology/?tab=Specifications I really don't know much about Geronimo, but it seems to support servlet 2.5 (via Tomcat.)


5

In this case, I assume you want both, dynamic interactivity and pull large datasets from a database in real time. This can be done with a CDF notebook, and it doesn't require WebMathematica unless your notebook really needs to do much more computationally intensive work than your example code indicates. So here are the steps: Server Save your dynamic ...


5

Of course this is just an academic technical exercise and cannot be really used due to legal restrictions of the CDF license. On Linux and Windows with JLink this seems to work easily: [rolfm@localhost cdffun]$ cat CDFFun.java /******************************************************** * CDFFun.java * ...


4

To prevent your code from appearing in the CDF file, simply double-click on the innermost cell bracket of your output cell. This collapses the input cell. Then select File...Deploy...Standalone...[save entire file)]. The resultant CDF file will neither show the input code nor allow it to be seen at all (since the cell bracket will not be available).


4

Consider two versions of CDF: Deployed Save as -> cdf (not deployed): you can see literally the source code via hitting shift+ctrl+E (hard to comprehend though ). Deploy a cdf without showing source code: click the output in your notebook. choose File -> Deploy -> Standalone -> current selection export this cdf to the selected location You can ...


4

The key to this is what exactly you mean by "compile to C code". If the question is: is it possible to generate a collection of code conforming to the C standard that when compiled and run produces the same result as some general Mathematica function, then the answer is that there is no technical limitation. However this C code will be very large and will ...


4

I believe that this Wolfram video is exactly what you want. From Wolfram support: Essentially, the steps are as follows: 1) Place all of the symbol definitions that you would like to obfuscate into a Mathematica package file. 2) For each of these symbols, use the Attributes function to set the Locked, Protected, and ReadProtected ...


3

This might not be completely what you want, but it works: CDFDeploy[SystemDialogInput["FileSave"], DocumentNotebook[ Column[{Dynamic[CurrentValue["WindowSize"]], Panel[ GraphicsGrid[ConstantArray[1, {48, 78}], ImageSize -> {800, 500}, Background -> RGBColor[0.745, 0.886, 0.1], Alignment ...


3

The answer depends on what you want to do with CDF documents. The standard version of Mathematica allows you to make CDF documents. A good example of what they can do is the stuff on demonstrations.wolfram.com. Basically, if you are content with making Manipulate statements with sliders and buttons, then you'll do well with the standard CDF document. You ...


3

I think "by design" Encode is/was not system dependet (neither OS nor architecture), as M.R. has stated. But I remember there were some problems with earlier versions (the following is just from memory and probably not entirely correct, so if it matters and you are in doubt better make some checks): Before version 8 there were some combinations of OS which ...


2

Most of the options you want to set are actually options for Notebook or Cell, so when changing them globally you only change their default values for new notebooks and cells. You can (and should) set these options not globally but only on the notebook level for the notebook you want to deploy. To do this use the option inspector, not the preferences dialog ...


2

This may help. I have no experience with Player Pro, but the free CDF Player will load a script if and only if it is Encoded[]; this has to be done by a full version of Mathematica. It is loaded into CDF Player with the call: Get["filePathToEncodedScript.m"] The problem is that there is no way to get a result of the operation out of the Player kernel ...


2

I made a test file "test.m" Export["test.png",ListPlot[RandomReal[{0,100},{100}]]]; and ran it in the terminal: /Applications/Mathematica.app/Contents/MacOS/MathKernel -noprompt -run "<</Users/mikehoneychurch/Desktop/test.m" and it worked fine. Then tried with Player Pro /Applications/Wolfram\ Player\ Pro.app/Contents/MacOS/MathKernel -noprompt ...


2

In addition to the methods already suggested by others: If you would like to have a CDF that consists of a single Manipulate you can simply copy the Manipulate box itself (i.e., the output of the Manipulate) to an empty notebook and save that as a CDF. If initialization with external variables is required use the Manipulate option SaveDefinitions->True ...


1

Apparently, one of the enhanced capabilities available in an enterprise license of Mathematica is the capability to send data to your CDF file just like when using Flash. http://www.wolfram.com/mathematica/how-to-buy/industry-individuals.html I have not been able to find the documentation for this in Wolfram's site, but I'll update my answer when I do. ...



Only top voted, non community-wiki answers of a minimum length are eligible