Interactive ‘Mystery Curve’ using Jupyter notebook

June 4th, 2015 | Categories: just for fun, programming, python, Scientific Software, tutorials | Tags:

The ever-superb John D. Cook recently found this lovely looking curve in a book he’s currently readingmystery_curve


John posted some Python code that reproduced this curve. I stole borrowed his code, put it in a Jupyter notebook and wrapped it in an interactive widget to allow me to play with the parameters and see what other curves I could come up with. The result looks like this.

Screen Shot 2015-06-04 at 15.09.26

If you’d like something where those sliders work, you need to run the notebook I’ve created in Project Jupyter. Here are 2 ways to do that.

Once you have the notebook open, click on Cell->Run All and play with the sliders that pop up.

Other posts about these curves:

  1. Will Furnass
    June 4th, 2015 at 20:40
    Reply | Quote | #1

    Interesting function! The interactive widgets are also pretty cool. Found them useful when doing rough and ready model sensitivity analysis.

  2. July 10th, 2015 at 04:43
    Reply | Quote | #2

    There is Maple source code for producing interactive applications for this topic, using the Explore command, here:

Comments are closed.