mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Address comments jupyter create book notebook (#12250)
* Remove toc file link and add warning for windows users
This commit is contained in:
@@ -24,9 +24,9 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"source": [
|
"source": [
|
||||||
"# Create Jupyter Book\n",
|
"# Create Jupyter Book\n",
|
||||||
"This is a notebook to create a [Jupyter Book](https://jupyterbook.org/intro.html), which is an organized collections of Jupyter notebooks.\n",
|
" <span style=\"color:red\">**Note**:</span> **Windows users** using **Python 3.8** might be impacted by this known [issue](https://jupyterbook.org/advanced/advanced.html#working-on-windows) on the latest **jupyter book** version.\n",
|
||||||
"\n",
|
"\n",
|
||||||
" \n",
|
"This is a notebook to create a [Jupyter Book](https://jupyterbook.org/intro.html), which is an organized collections of Jupyter notebooks.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"The best way to use this notebook is by clicking Run all in the toolbar above. This will run all the cells in a step-by-step order so that you can create your Jupyter Book.\n",
|
"The best way to use this notebook is by clicking Run all in the toolbar above. This will run all the cells in a step-by-step order so that you can create your Jupyter Book.\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -130,11 +130,10 @@
|
|||||||
" elif version:\r\n",
|
" elif version:\r\n",
|
||||||
" if overwrite:\r\n",
|
" if overwrite:\r\n",
|
||||||
" shutil.rmtree(book_name)\r\n",
|
" shutil.rmtree(book_name)\r\n",
|
||||||
" else:\r\n",
|
|
||||||
" # waiting for shutil to remove the directory\r\n",
|
" # waiting for shutil to remove the directory\r\n",
|
||||||
" while os.path.exists(book_name):\r\n",
|
" while os.path.exists(book_name):\r\n",
|
||||||
" pass\r\n",
|
" pass\r\n",
|
||||||
" subprocess.check_call(['mkdir', book_name])\r\n",
|
" os.mkdir(book_name)\r\n",
|
||||||
" content_folder = os.path.join(content_folder,'')\r\n",
|
" content_folder = os.path.join(content_folder,'')\r\n",
|
||||||
" if platform in ['linux', 'darwin']:\r\n",
|
" if platform in ['linux', 'darwin']:\r\n",
|
||||||
" subprocess.check_call(['cp', '-r',content_folder, book_name])\r\n",
|
" subprocess.check_call(['cp', '-r',content_folder, book_name])\r\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user