Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

My Notebook has no functions, but has a lot repetitive code with dynamic variables. I want to put the repetitive code into a package. Can i write a Package with functions that use dynamic variables?

share|improve this question
1  
Your notebook has no functions, but the package will have? Maybe a simple example of the type of code you have, and what output you want, might help to obtain a good solution? – image_doctor Jan 8 at 11:36
3  
Well, ofcourse you can. But the code will have to run in the front end to do anything. i.e. if you run it as a script then dynamics will not do anything. All what the package does is provide a context for all these functions. – Nasser Jan 8 at 11:36

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.