Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hope I am going insane and the I'm not seeing the snake about to bite me...

How does one view the code in the demonstration projects that one can download from

It seems like all of them come down as an 'Authoring Notebook' and I cannot always get the notebook to show a view of the code the author used.

Some of the notebooks have the cells 'docked' and you can view the code by double clicking the cell. Others, do not show the icon on the cell brackets to open their content, but the demonstration still functions.

It appears the code is definitely available by looking at the plain text of the file.

Are authors encouraged to obfuscate the code in their demonstrations? If not please direct me to the snake...

share|improve this question
Would you send a link to a particular demonstration, the code of which you have not been able to view? That way, we may see what you are experiencing. BTW, did you mouseover the places where the cell brackets normally appear. They may simply be hidden from view. – DavidC Apr 29 '13 at 1:56
It is in the works to make this locating of author notebooks from the Demonstration pages a bit more clea. – Daniel Lichtblau Apr 29 '13 at 20:39
up vote 7 down vote accepted

Usually you can scroll down the cdf and find a "Download Source Code" button:

enter image description here

Clicking this button downloads another notebook where the code is explicitly visible.

share|improve this answer
OUCH!!! Snakebite! Help!!! – Sinistar Apr 29 '13 at 15:13
Let me just note that this is quite ridiculous. – rubenvb Nov 20 '13 at 16:11

On other browsers/platforms, you may see this:

screen cap

and if you click on (preview) you'll see this:

screen cap 2

although you can't copy this, because it's a GIF...

share|improve this answer
But you can click "Download Author Code" and you will get the notebook where the code is explicitly visible. – Alexey Popkov Feb 16 '14 at 16:20

In order to see the code in the demonstration files, you simply click on the right bar of the section with the code, and select 'convert to input form'...

Then you can copy the entire code snippet and paste it into your new file, where it will then get syntax formatting & coloring.

convert cell to 'input form'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.