mirror of
https://github.com/balkian/gists.git
synced 2024-11-21 17:22:29 +00:00
This commit is contained in:
parent
ca55b51129
commit
f803f9701e
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user