1
0
mirror of https://github.com/balkian/gists.git synced 2024-12-22 14:28:12 +00:00
This commit is contained in:
J. Fernando Sánchez 2019-03-21 16:07:11 +01:00 committed by GitHub
parent ca55b51129
commit f803f9701e

View File

@ -6,12 +6,13 @@
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" import bitter\n",
"except ImportError:\n",
" import pip\n",
" pip.main(['install', '--user', 'bitter'])\n",
" import bitter\n",
"# Install a pip package in the current Jupyter kernel.\n",
"import sys\n",
"import site\n",
"usersite = site.getusersitepackages()\n",
"if usersite not in sys.path:\n",
" sys.path.append(usersite)\n",
"!{sys.executable} -m pip install --user -r requirements.txt",
"import os"
]
},
@ -158,4 +159,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}