Giter Club home page Giter Club logo

Comments (5)

danielfrg avatar danielfrg commented on August 16, 2024

This should be possible, one of the nice things about having an external file is that it forces to all the content to be in the notebook, which I understand is kinda annoying sometimes but that allows the HTML/CSS from the notebook to integrate with the theme easier so at the end it looks better. I'll try to find sometime to look at the liquid tags and see how this would be possible.

from pelican-jupyter.

danielfrg avatar danielfrg commented on August 16, 2024

I took some code from the notebook liquid plugin and this is now possible since commit de8b205.

It requires some testing so if you could test it would be nice.

See the Readme on how to use this.

from pelican-jupyter.

FlorianWilhelm avatar FlorianWilhelm commented on August 16, 2024

Thank you! On b3af133, I get an error when running pelican:

Traceback (most recent call last):
  File "/home/fwilhelm/.virtualenvs/venv/bin/pelican", line 11, in <module>
    sys.exit(main())
  File "/home/fwilhelm/.virtualenvs/venv/lib/python2.7/site-packages/pelican/__init__.py", line 386, in main
    pelican, settings = get_instance(args)
  File "/home/fwilhelm/.virtualenvs/venv/lib/python2.7/site-packages/pelican/__init__.py", line 380, in get_instance
    return cls(settings), settings
  File "/home/fwilhelm/.virtualenvs/venv/lib/python2.7/site-packages/pelican/__init__.py", line 57, in __init__
    self.init_plugins()
  File "/home/fwilhelm/.virtualenvs/venv/lib/python2.7/site-packages/pelican/__init__.py", line 84, in init_plugins
    plugin.register()
AttributeError: 'module' object has no attribute 'register'

from pelican-jupyter.

danielfrg avatar danielfrg commented on August 16, 2024

You have to change the pelicanconf.py to PLUGINS = ['ipynb.liquid'] instead of PLUGINS = ['ipynb']

from pelican-jupyter.

FlorianWilhelm avatar FlorianWilhelm commented on August 16, 2024

Oh thanks, as described in the README :-)
Hopefully this time I am not asking something obvious but I am still a bit new with Pelican. Now I got:

/home/fwilhelm/.virtualenvs/venv/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html.parser")

  markup_type=markup_type))
ERROR: Could not process posts/rbf_networks_with_tensorflow.md
  | TypeError: cannot concatenate 'str' and 'BeautifulSoup' objects

So the notebook file is found and read but maybe I need to specify another parser?

from pelican-jupyter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.