mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
check for jupyter-book versions and install 6.4 (#11167)
* check for jupyter-book versions and install 6.4 * added a note before installation
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
"source": [
|
||||
"# Create Jupyter Book\n",
|
||||
"\n",
|
||||
"<strong style=\"color: red; opacity: 0.80;\">Note: Jupyter Books in Azure Data Studio only support jupyter-book versions <= 0.6.4 To create a Jupyter Book, we will be uninstalling versions newer than 0.6.4 and replacing with 0.6.4</strong>\n",
|
||||
"## 1. Installation\n",
|
||||
"\n",
|
||||
"To install the Jupyter Book command-line interface (CLI), use `pip`!"
|
||||
@@ -38,13 +39,18 @@
|
||||
"source": [
|
||||
"import sys\r\n",
|
||||
"\r\n",
|
||||
"#install jupyter-book\r\n",
|
||||
"#install jupyter-book 0.6.4\r\n",
|
||||
"cmd = f'{sys.executable} -m pip show jupyter-book'\r\n",
|
||||
"cmdOutput = !{cmd}\r\n",
|
||||
"if len(cmdOutput) > 1 and '0.6.4' in cmdOutput[1]:\r\n",
|
||||
" print('Jupyter-book required version is already installed!')\r\n",
|
||||
"elif len(cmdOutput) > 1:\r\n",
|
||||
" print('Unsupported version of Jupyter-book installed, Please wait while we uninstall and install the supported version.')\r\n",
|
||||
" !pip uninstall jupyter-book --yes\r\n",
|
||||
" !pip install jupyter-book==0.6.4\r\n",
|
||||
"else:\r\n",
|
||||
" !pip install jupyter-book"
|
||||
" print('Installing Jupyter-book...')\r\n",
|
||||
" !pip install jupyter-book==0.6.4"
|
||||
],
|
||||
"metadata": {
|
||||
"azdata_cell_guid": "8bd77173-2f63-4bf8-95e8-af2a654fc91e",
|
||||
|
||||
Reference in New Issue
Block a user