Mathematica now has an official dynamic notebook renderer that enables us embedding notebooks inside a web page. This post describes how to use it.

Choosing colors inside a figure is always a difficult problem for me. So I developed a Mathematica package called PrettyColorize that can help me on this.

I came across a discussion on Stackexchange about the modern style of organizing code for Mathematica packages. This style is still ‘undocumented and should be used at your own risk’. But I’ve noticed more and more Mathematica internal packages start to use it. This new style improves the modularity compared with the old package style(, albeit not as good as those ones in python). This post is some notes about it.

Procedure of optimizing Mathematica code

It occurred to me that I needed to find the minimal element (if there are multiple occurence, just return any one of them), as well as its position, in a list using mathematica. This seems to be a trivial problem and…