Metadata-Version: 2.0
Name: hugo-jupyter
Version: 1.0.2
Summary: Use Jupyter notebooks to publish with Hugo.
Home-page: https://github.com/knowsuchagency/hugo_jupyter
Author: Stephan Fitzpatrick
Author-email: knowsuchagency@gmail.com
License: MIT license
Description-Content-Type: UNKNOWN
Keywords: hugo_jupyter
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: appnope (==0.1.0)
Requires-Dist: argh (==0.26.2)
Requires-Dist: asn1crypto (==0.23.0)
Requires-Dist: bcrypt (==3.1.3)
Requires-Dist: bleach (==2.1)
Requires-Dist: cffi (==1.11.0)
Requires-Dist: colorama (==0.3.9)
Requires-Dist: crayons (==0.1.2)
Requires-Dist: cryptography (==2.0.3)
Requires-Dist: decorator (==4.1.2)
Requires-Dist: docopt (==0.6.2)
Requires-Dist: entrypoints (==0.2.3)
Requires-Dist: fabric3 (==1.13.1.post1)
Requires-Dist: html5lib (==1.0b10)
Requires-Dist: idna (==2.6)
Requires-Dist: ipykernel (==4.6.1)
Requires-Dist: ipython (==6.2.1)
Requires-Dist: ipython-genutils (==0.2.0)
Requires-Dist: ipywidgets (==7.0.1)
Requires-Dist: jedi (==0.11.0)
Requires-Dist: jinja2 (==2.9.6)
Requires-Dist: jsonschema (==2.6.0)
Requires-Dist: jupyter (==1.0.0)
Requires-Dist: jupyter-client (==5.1.0)
Requires-Dist: jupyter-console (==5.2.0)
Requires-Dist: jupyter-contrib-core (==0.3.3)
Requires-Dist: jupyter-contrib-nbextensions (==0.3.1)
Requires-Dist: jupyter-core (==4.3.0)
Requires-Dist: jupyter-highlight-selected-word (==0.0.11)
Requires-Dist: jupyter-latex-envs (==1.3.8.4)
Requires-Dist: jupyter-nbextensions-configurator (==0.2.7)
Requires-Dist: markupsafe (==1.0)
Requires-Dist: mistune (==0.7.4)
Requires-Dist: nbconvert (==5.3.1)
Requires-Dist: nbformat (==4.4.0)
Requires-Dist: notebook (==5.1.0)
Requires-Dist: pandocfilters (==1.4.2)
Requires-Dist: paramiko (==2.3.1)
Requires-Dist: parso (==0.1.0)
Requires-Dist: pathtools (==0.1.2)
Requires-Dist: pexpect (==4.2.1)
Requires-Dist: pickleshare (==0.7.4)
Requires-Dist: prompt-toolkit (==1.0.15)
Requires-Dist: ptyprocess (==0.5.2)
Requires-Dist: pyasn1 (==0.3.6)
Requires-Dist: pycparser (==2.18)
Requires-Dist: pygments (==2.2.0)
Requires-Dist: pynacl (==1.1.2)
Requires-Dist: python-dateutil (==2.6.1)
Requires-Dist: pyyaml (==3.12)
Requires-Dist: pyzmq (==16.0.2)
Requires-Dist: qtconsole (==4.3.1)
Requires-Dist: simplegeneric (==0.8.1)
Requires-Dist: six (==1.11.0)
Requires-Dist: terminado (==0.6)
Requires-Dist: testpath (==0.3.1)
Requires-Dist: tornado (==4.5.2)
Requires-Dist: traitlets (==4.3.2)
Requires-Dist: watchdog (==0.8.3)
Requires-Dist: wcwidth (==0.1.7)
Requires-Dist: webencodings (==0.5.1)
Requires-Dist: widgetsnbextension (==3.0.3)
Provides-Extra: dev
Requires-Dist: alabaster (==0.7.10); extra == 'dev'
Requires-Dist: asn1crypto (==0.23.0); extra == 'dev'
Requires-Dist: babel (==2.5.1); extra == 'dev'
Requires-Dist: bumpversion (==0.5.3); extra == 'dev'
Requires-Dist: certifi (==2017.7.27.1); extra == 'dev'
Requires-Dist: cffi (==1.11.0); extra == 'dev'
Requires-Dist: chardet (==3.0.4); extra == 'dev'
Requires-Dist: coverage (==4.4.1); extra == 'dev'
Requires-Dist: cryptography (==1.9); extra == 'dev'
Requires-Dist: docutils (==0.14); extra == 'dev'
Requires-Dist: enum34 (==1.1.6); extra == 'dev'
Requires-Dist: flake8 (==3.3.0); extra == 'dev'
Requires-Dist: idna (==2.6); extra == 'dev'
Requires-Dist: imagesize (==0.7.1); extra == 'dev'
Requires-Dist: ipaddress (==1.0.18); extra == 'dev'
Requires-Dist: jinja2 (==2.9.6); extra == 'dev'
Requires-Dist: markupsafe (==1.0); extra == 'dev'
Requires-Dist: mccabe (==0.6.1); extra == 'dev'
Requires-Dist: pluggy (==0.5.2); extra == 'dev'
Requires-Dist: py (==1.4.34); extra == 'dev'
Requires-Dist: pycodestyle (==2.3.1); extra == 'dev'
Requires-Dist: pycparser (==2.18); extra == 'dev'
Requires-Dist: pyflakes (==1.5.0); extra == 'dev'
Requires-Dist: pygments (==2.2.0); extra == 'dev'
Requires-Dist: pytest (==3.2.2); extra == 'dev'
Requires-Dist: pytest-runner (==2.11.1); extra == 'dev'
Requires-Dist: pytz (==2017.2); extra == 'dev'
Requires-Dist: pyyaml (==3.12); extra == 'dev'
Requires-Dist: requests (==2.18.4); extra == 'dev'
Requires-Dist: six (==1.11.0); extra == 'dev'
Requires-Dist: snowballstemmer (==1.2.1); extra == 'dev'
Requires-Dist: sphinx (==1.6.2); extra == 'dev'
Requires-Dist: sphinx-autodoc-typehints (==1.2.0); extra == 'dev'
Requires-Dist: sphinxcontrib-websupport (==1.0.1); extra == 'dev'
Requires-Dist: tox (==2.7.0); extra == 'dev'
Requires-Dist: urllib3 (==1.22); extra == 'dev'
Requires-Dist: virtualenv (==15.1.0); extra == 'dev'
Requires-Dist: wheel (==0.29.0); extra == 'dev'

============
Hugo Jupyter
============


.. image:: https://img.shields.io/pypi/v/hugo_jupyter.svg
        :target: https://pypi.python.org/pypi/hugo_jupyter

.. image:: https://img.shields.io/travis/knowsuchagency/hugo_jupyter.svg
        :target: https://travis-ci.org/knowsuchagency/hugo_jupyter

.. image:: https://pyup.io/repos/github/knowsuchagency/hugo_jupyter/shield.svg
     :target: https://pyup.io/repos/github/knowsuchagency/hugo_jupyter/
     :alt: Updates

.. image:: https://img.shields.io/github/license/mashape/apistatus.svg



Publish Jupyter_ notebooks with Hugo_.


* Documentation: https://knowsuchagency.github.io/hugo_jupyter
* Source: https://github.com/knowsuchagency/hugo_jupyter


Installation
------------

.. code-block:: bash

    pip install hugo_jupyter

Usage
-----

.. image:: example_movie.gif
    :target: https://youtu.be/LtdyM4hP85I

.. code-block:: bash

    cd root_of_hugo_project
    hugo_jupyter --init

This will create a ``notebooks`` directory at the root of your hugo project if it doesn't yet exist.
Any jupyter notebooks you want rendered should go in the ``notebooks`` directory.

In addition, a fabfile.py script will be written at the project root.

.. code-block:: bash

    fab serve

Automatically initializes your jupyter server, hugo server, and watchdog to re-render
your jupyter notebooks to markdown for hugo as you create and edit them.


Jupyter Notebooks
-----------------

Any notebooks that you create will need `front matter`_ for hugo to know how to render the content.

Once you edit the name of the jupyter notebook to something other than ``Untitled*.ipynb``, hugo-jupyter will
automatically edit the notebook's metadata to enable rendering with jupyter. You may need to reload the
notebook page to see the changes in the metadata.

There will also be a ``hugo-jupyter`` dictionary in the notebook's metadata with a ``render-to`` field
automatically set to ``content/post/``. You can edit this field to edit where the notebook's markdown
will be rendered to.

.. image:: http://i.imgur.com/ynQs0gB.png

.. image:: http://i.imgur.com/Jcjwc0y.png

.. _front matter: https://gohugo.io/content-management/front-matter/
.. _hugo: https://gohugo.io/
.. _jupyter: http://jupyter.org/


