I have created a very basic %%stan magic extension to maintain the stan worklow within jupyter notebook . Once a PR for codemirror stan mode gets through (syntax highlighting/autocomplete) could be enabled.
What is the error you are getting?. Your extension log looks ok to me. You need to install the Stanmagic extension first. stanmagic installs the extension for saving/compile checking stan code in Jupyter notebooks. stan_helper_code is some javascript code that enables syntax highlighting. It is an optional extension that requires stanmagic. I have got a couple of queries on this. I have updated the README to highlight this requirement.
Thanks for all the feedback. Didn’t realize there were many pystan users!. Thanks to @ahartikainen for suggesting improvements. I have updated the stanmagic package (https://github.com/Arvinds-ds/stanmagic.git) with few of your requests including syntax colored HTML formatting of stan code output using pygments.
I’ve forked jupyterstan to support cmdstanpy instead of pystan, but I was unable to get the syntax highlighting to work. I think this may be related to the JupyerLab 3 release.
As at least some form of a workaround for this, I added %stanf to load an existing stan file, and this should highlight using pygments. Very happy to continue working on this, but I’m having a hard time finding ‘prior art’ on the syntax highlighting part of this