This is an automated email from the ASF dual-hosted git repository.

olehmykolaishyn pushed a commit to branch DATALAB-2728
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2728 by this push:
     new 710989f  nbconvert added
710989f is described below

commit 710989fac91a8e6e93194302ba5f880b6e0cf898
Author: oleh_mykolaishyn <[email protected]>
AuthorDate: Mon Mar 7 10:52:45 2022 +0200

    nbconvert added
---
 infrastructure-provisioning/src/general/conf/datalab.ini       |  2 ++
 .../src/general/lib/os/debian/notebook_lib.py                  | 10 ++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/src/general/conf/datalab.ini 
b/infrastructure-provisioning/src/general/conf/datalab.ini
index 1de4068..d01f810 100644
--- a/infrastructure-provisioning/src/general/conf/datalab.ini
+++ b/infrastructure-provisioning/src/general/conf/datalab.ini
@@ -360,6 +360,8 @@ gcs_connector_version = 2.0.1
 setuptools_version = 54.1.1
 ### Roxygen2 version
 roxygen2_version = 7.1.1
+### NBconvert version
+nbconver_version = 5.6.1
 
 #--- [emr] section contains all parameters that are using for emr provisioning 
---#
 [emr]
diff --git 
a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py 
b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 3246d31..cb468f7 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -281,11 +281,13 @@ def ensure_python3_libraries(os_user):
             else:
                 datalab.fab.conn.sudo('pip3 install 
setuptools=={}'.format(os.environ['notebook_setuptools_version']))
             try:
-                datalab.fab.conn.sudo('pip3 install tornado=={0} 
ipython==7.21.0 ipykernel=={1} sparkmagic --no-cache-dir' \
-                     .format(os.environ['notebook_tornado_version'], 
os.environ['notebook_ipykernel_version']))
+                datalab.fab.conn.sudo('pip3 install tornado=={0} 
ipython==7.21.0 ipykernel=={1} nbconvert=={2} sparkmagic --no-cache-dir' \
+                     .format(os.environ['notebook_tornado_version'], 
os.environ['notebook_ipykernel_version'],
+                             os.environ['notebook_nbconvert_version']))
             except:
-                datalab.fab.conn.sudo('pip3 install tornado=={0} 
ipython==7.9.0 ipykernel=={1} sparkmagic --no-cache-dir' \
-                     .format(os.environ['notebook_tornado_version'], 
os.environ['notebook_ipykernel_version']))
+                datalab.fab.conn.sudo('pip3 install tornado=={0} 
ipython==7.9.0 ipykernel=={1} nbconvert=={2} sparkmagic --no-cache-dir' \
+                     .format(os.environ['notebook_tornado_version'], 
os.environ['notebook_ipykernel_version'],
+                             os.environ['notebook_nbconvert_version']))
             datalab.fab.conn.sudo('pip3 install -U pip=={} 
--no-cache-dir'.format(os.environ['conf_pip_version']))
             datalab.fab.conn.sudo('pip3 install boto3 --no-cache-dir')
             datalab.fab.conn.sudo('pip3 install fabvenv fabric-virtualenv 
future patchwork --no-cache-dir')

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to