From df6a148907bca6690cc146b9028ddcd712a58f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 14 Feb 2019 17:39:58 +0100 Subject: [PATCH] Add install fix for the lab --- rdf/Install.ipynb | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 rdf/Install.ipynb diff --git a/rdf/Install.ipynb b/rdf/Install.ipynb new file mode 100644 index 0000000..6b8c91b --- /dev/null +++ b/rdf/Install.ipynb @@ -0,0 +1,59 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collecting future (from -r requirements.txt (line 1))\n", + "Collecting rdflib (from -r requirements.txt (line 2))\n", + " Using cached https://files.pythonhosted.org/packages/3c/fe/630bacb652680f6d481b9febbb3e2c3869194a1a5fc3401a4a41195a2f8f/rdflib-4.2.2-py3-none-any.whl\n", + "Collecting rdflib-jsonld (from -r requirements.txt (line 3))\n", + "Collecting lxml (from -r requirements.txt (line 4))\n", + " Using cached https://files.pythonhosted.org/packages/a9/3c/2a9b8a58d9e7a8e3123ada3e3420fb3a963420a1ed235d62647a55edb359/lxml-4.3.1-cp36-cp36m-manylinux1_x86_64.whl\n", + "Collecting html5lib (from -r requirements.txt (line 5))\n" + ] + } + ], + "source": [ + "# Install a pip package in the current Jupyter kernel\n", + "import sys\n", + "import os\n", + "sys.path.append(os.path.join(os.getcwd(), '.jupyter'))\n", + "!{sys.executable} -m pip install --target '.jupyter' -r requirements.txt" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "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.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}