Closed michaelaye closed 10 years ago
Try adding a new line at the end on the .ipynb-meta
, like this:
Title: Testing Notebook blogging
Slug: testing-notebook-blogging
Date: 2013-11-29
Category: Coding
Tags: notebook
Author: K.-Michael Aye
Summary: Just trying out the notebook plugin
Alas, no change:
$ cat test.ipynb-meta
Title: Testing Notebook blogging
Slug: testing-notebook-blogging
Date: 2013-11-29
Category: Coding
Tags: notebook
Author: K.-Michael Aye
Summary: Just trying out the notebook plugin
# maye at lunatic in ~/Dropbox/src/blog/content/posts/2013/11 on git:gh-pages x [11:46:28]
$ pelican
WARNING: Could not process posts/2013/11/test.ipynb
custom_highlighter() got an unexpected keyword argument 'metadata'
Done: Processed 0 articles and 0 pages in 0.21 seconds.
# maye at lunatic in ~/Dropbox/src/blog on git:gh-pages x [11:47:29]
This is python 2.7 btw. As you are not testing that, maybe that's how you never met this problem.
I just created a virtualenv with python 2.7 and is working fine. I am not able to reproduce the error you are getting.
Do you have the latest version? Try using make (make html
) to generate the output, that is what I always use (don't think is going to fix it though).
Did you try it with pelican 3.3? Because your readme shows an older version. I have 3.3 as written in the issue title. Oh, and make html
did not do anything different for me.
Yes, I use 3.3 (haven't updated the readme) this is my pip freeze
(blog27)danielfrg@Daniels-MacBook-Pro.local:blog$ pip freeze
Jinja2==2.7.1
Markdown==2.3.1
MarkupSafe==0.18
Pygments==1.6
Sphinx==1.1.3
Unidecode==0.04.14
blinker==1.3
distribute==0.6.45
docutils==0.11
feedgenerator==1.7
ipython==1.1.0
pelican==3.3
pytz==2013.8
pyzmq==2.2.0.1
six==1.4.1
tornado==3.1.1
wsgiref==0.1.2
Also you might try downloading one of my posts using ipython notebooks and see if that one works: here
After I confirmed that it is a setup problem and not a content problem by trying one of your notebooks, I went through all package versions I had and I believe it was feedgenerator that was too old (1.2.1). I have it now working, hooray! Thanks for your help!
Hi, I have the same issue that @michaelaye reported, but I'm using the same package versions that @danielfrg has. Processing fails even with @danielfrg example notebooks. Any ideas on what may be causing that?
@jfsantos, same here. Processing fails with @danielfrg examples.
Unfortunately I am still unable to reproduce this, and therefor fix it.
I just made a couple of updates to fix IPython 2.0 issues, I don't think i will fix your issues but maybe.
I just did this procedure in a clean box and it worked for me:
conda create -n blog python=3 pip
source activate blog
conda install ipython-notebook
pip install pelican
pip install markdown
(blog)➜ blog git:(master) ✗ pip freeze
Jinja2==2.7.2
Markdown==2.4
MarkupSafe==0.18
Pygments==1.6
Sphinx==1.2.2
Unidecode==0.04.14
backports.ssl-match-hostname==3.4.0.2
blinker==1.3
docutils==0.11
feedgenerator==1.7
ipython==2.0.0
pelican==3.3
pytz==2014.2
pyzmq==14.1.0
six==1.6.1
tornado==3.2
After that make html
worked for me.
Please try the latest plugin code with the latests versions and let me know
I think I have everything set up as instructed, but I get this error:
My content folder:
The content of test.ipynb-meta:
The relevant parts of pelicanconf.py:
Here's the output of running pelican with the
--debug
option: