{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# How to export your Jupyter Notebook to Medium in 3 easy steps" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Install [jupyter_to_medium](https://www.dexplo.org/jupyter_to_medium/) on Jupyter:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!pip install jupyter_to_medium\n", "!jupyter bundlerextension enable --py jupyter_to_medium._bundler --sys-prefix" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Get your integration token:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Get your integration token by going to your [Medium Account's Settings](https://medium.com/me/settings) > Integration Token." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. Set your integration token:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!mkdir ~/.jupyter_to_medium # create folder\n", "!echo \"YOUR-INTEGRATION-TOKEN\" > ~/.jupyter_to_medium/integration_token # add integration token" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "All done!\n", "\n", "The next time you restart Jupyter Notebook, you will be able to deploy your notebooks straight to Medium!" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**PS: this medium article was generated from [this Jupyter Notebook](https://nbviewer.jupyter.org/gist/diogoseca/5f6d705dc74ed6fd9fb00d632544ceed) using [jupyter_to_medium](https://www.dexplo.org/jupyter_to_medium/).**" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.7" } }, "nbformat": 4, "nbformat_minor": 4 }