As one of the few python users in last week’s Learn Bayes workshop, it was frustrating to see lack of syntax highlighting in jupyter notebooks. I noticed that stan was not supported in codemirror and hence the jupyter editor was unable to recognize stan code. I got through with a custom js file I wrote. I would request the team to consider the following (given that a lot of work has already been done in R)
- officially support stan mode in the list of codemirror language list. (I just templated c++ mode file and copied STAN functions). It shouldn’t take very long. (https://github.com/codemirror/codemirror)
- Jupyter project periodically upgrades codemirror.js file and STAN will automatically have syntax highlighting and hinting support in its code cell
- If possible, add a pygments file for nbconvert
Kindly ignore this if it is already a part of your roadmap. Also let me know if you need any help.