TiesdeKok / ipystata

Enables the use of Stata together with Python via Jupyter (IPython) notebooks.
192 stars 68 forks source link

Problem with syntax highlighting #32

Closed v-marinkov closed 6 years ago

v-marinkov commented 6 years ago

Hi Ties, thanks for your great work! I just tried to implement your instructions for the STATA-style syntax highlighting, but I get the following error: image

Here is where my Anaconda installation resides and where I put the stata.js file: C:\ProgramData\Anaconda3\Lib\site-packages\notebook\static\components\codemirror\mode\stata

My Ipython version is 6.2.1.

Any ideas how to get it working? Thanks again!

TiesdeKok commented 6 years ago

Hi!

Yes, it appears that recent changes to either Ipython or Jupyter changed the way that custom syntax highlighting is added.

After looking in to it I believe I have found a fix.

I have changed the code and pushed it to the GitHub repo: 49acff7e13716d7baa7cf43be1b6b7c6cef9fc0c

Could you please install this newest version and let me know whether it solves your problem?

pip install git+https://github.com/TiesdeKok/ipystata -U
v-marinkov commented 6 years ago

Yes! Thank you - all working great now!