From eca946a885418f2cbabf4df6272c8fdce3675322 Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Fri, 13 Mar 2020 00:09:31 -0700 Subject: [PATCH] check for len > 1 (#9586) (#9600) Co-authored-by: Maddy <12754347+MaddyDev@users.noreply.github.com> --- .../notebook/resources/notebooks/JupyterBooksCreate.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/notebook/resources/notebooks/JupyterBooksCreate.ipynb b/extensions/notebook/resources/notebooks/JupyterBooksCreate.ipynb index ad56e713eb..425aca5c43 100644 --- a/extensions/notebook/resources/notebooks/JupyterBooksCreate.ipynb +++ b/extensions/notebook/resources/notebooks/JupyterBooksCreate.ipynb @@ -41,7 +41,7 @@ "#install jupyter-book\r\n", "cmd = f'{sys.executable} -m pip show jupyter-book'\r\n", "cmdOutput = !{cmd}\r\n", - "if len(cmdOutput) > 0 and '0.6.4' in cmdOutput[1]:\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", "else:\r\n", " !pip install jupyter-book"