Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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 wolfram.com?

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
2  
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. –  David Carraher 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

2 Answers 2

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
1  
But you can click "Download Author Code" and you will get the notebook where the code is explicitly visible. –  Alexey Popkov Feb 16 at 16:20

Your Answer

 
discard

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.