ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.23k stars 806 forks source link

Pymarkdown broke the command line pdf generation (pdf generation from live web session works but it does not interpret the pymarkdown code) #723

Open erichu8 opened 8 years ago

erichu8 commented 8 years ago

Since I installed the pymarkdown extension I can't run nbconverter --to pdf file.ipynb without getting an error. Error is consistently replicated on every fresh conda-forge linux64 environments

juhasch commented 8 years ago

It this the error you get ? https://github.com/jupyter/nbconvert/issues/362

erichu8 commented 8 years ago

Making the two strings raw allows me to generate a PDF now. Is this a bug in all ubuntu16 conda-forge installation or it was only my machines?

Also there are a number of exceptions now raised while parsing the json config file; is it normal?

[NbConvertApp] ERROR | Exception while loading config file /anaconda/etc/jupyter/jupyter_nbconvert_config.json
Traceback (most recent call last):
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 534, in _load_config_files
    config = loader.load_config()
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/loader.py", line 406, in load_config
    dct = self._read_file_as_dict()
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/loader.py", line 412, in _read_file_as_dict
    return json.load(f)
  File "/anaconda/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/anaconda/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/anaconda/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/anaconda/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[NbConvertApp] Looking for jupyter_nbconvert_config in /Users/eric/.jupyter
[NbConvertApp] ERROR | Exception while loading config file /Users/eric/.jupyter/jupyter_nbconvert_config.json
Traceback (most recent call last):
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 534, in _load_config_files
    config = loader.load_config()
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/loader.py", line 406, in load_config
    dct = self._read_file_as_dict()
  File "/anaconda/lib/python2.7/site-packages/traitlets/config/loader.py", line 412, in _read_file_as_dict
    return json.load(f)
  File "/anaconda/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/anaconda/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/anaconda/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/anaconda/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
juhasch commented 8 years ago

Good question. I have similar problems, but only on my Linux machine.

erichu8 commented 8 years ago

I have other few machines (win7 & macs) would you like me to try the replicability there too? I could do it early next week..

juhasch commented 8 years ago

Can you try the fix here: https://github.com/ipython/ipython_genutils/pull/8

jcb91 commented 7 years ago

@erichu8 did you get this resolved in the end?