Skip to content

Instantly share code, notes, and snippets.

@ngrislain
Last active May 3, 2024 02:13
Show Gist options
  • Save ngrislain/c3ba6f687c64ce31adc6b0dff1b26d6a to your computer and use it in GitHub Desktop.
Save ngrislain/c3ba6f687c64ce31adc6b0dff1b26d6a to your computer and use it in GitHub Desktop.
py38 success.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "py38 success.ipynb",
"provenance": [],
"collapsed_sections": [],
"include_colab_link": true
},
"kernelspec": {
"name": "py38",
"display_name": "Python 3.8"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/ngrislain/c3ba6f687c64ce31adc6b0dff1b26d6a/py38-success.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"metadata": {
"id": "hZdyn7fqDqal",
"outputId": "e46f4e2d-5ffa-483c-e1fb-9f13586b805f",
"colab": {
"base_uri": "https://localhost:8080/"
}
},
"source": [
"!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh\n",
"!chmod +x mini.sh\n",
"!bash ./mini.sh -b -f -p /usr/local\n",
"!conda install -q -y jupyter\n",
"!conda install -q -y google-colab -c conda-forge\n",
"!python -m ipykernel install --name \"py38\" --user"
],
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"--2022-03-17 11:55:02-- https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh\n",
"Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8303, ...\n",
"Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 89817099 (86M) [application/x-sh]\n",
"Saving to: ‘mini.sh’\n",
"\n",
"mini.sh 100%[===================>] 85.66M 283MB/s in 0.3s \n",
"\n",
"2022-03-17 11:55:02 (283 MB/s) - ‘mini.sh’ saved [89817099/89817099]\n",
"\n",
"PREFIX=/usr/local\n",
"Unpacking payload ...\n",
"Collecting package metadata (current_repodata.json): - \b\b\\ \b\b| \b\bdone\n",
"Solving environment: - \b\bdone\n",
"\n",
"## Package Plan ##\n",
"\n",
" environment location: /usr/local\n",
"\n",
" added / updated specs:\n",
" - _libgcc_mutex==0.1=main\n",
" - asn1crypto==1.3.0=py38_0\n",
" - ca-certificates==2020.1.1=0\n",
" - certifi==2019.11.28=py38_0\n",
" - cffi==1.14.0=py38h2e261b9_0\n",
" - chardet==3.0.4=py38_1003\n",
" - conda-package-handling==1.6.0=py38h7b6447c_0\n",
" - conda==4.8.2=py38_0\n",
" - cryptography==2.8=py38h1ba5d50_0\n",
" - idna==2.8=py38_1000\n",
" - ld_impl_linux-64==2.33.1=h53a641e_7\n",
" - libedit==3.1.20181209=hc058e9b_0\n",
" - libffi==3.2.1=hd88cf55_4\n",
" - libgcc-ng==9.1.0=hdf63c60_0\n",
" - libstdcxx-ng==9.1.0=hdf63c60_0\n",
" - ncurses==6.2=he6710b0_0\n",
" - openssl==1.1.1d=h7b6447c_4\n",
" - pip==20.0.2=py38_1\n",
" - pycosat==0.6.3=py38h7b6447c_0\n",
" - pycparser==2.19=py_0\n",
" - pyopenssl==19.1.0=py38_0\n",
" - pysocks==1.7.1=py38_0\n",
" - python==3.8.1=h0371630_1\n",
" - readline==7.0=h7b6447c_5\n",
" - requests==2.22.0=py38_1\n",
" - ruamel_yaml==0.15.87=py38h7b6447c_0\n",
" - setuptools==45.2.0=py38_0\n",
" - six==1.14.0=py38_0\n",
" - sqlite==3.31.1=h7b6447c_0\n",
" - tk==8.6.8=hbc83047_0\n",
" - tqdm==4.42.1=py_0\n",
" - urllib3==1.25.8=py38_0\n",
" - wheel==0.34.2=py38_0\n",
" - xz==5.2.4=h14c3975_4\n",
" - yaml==0.1.7=had09818_2\n",
" - zlib==1.2.11=h7b6447c_3\n",
"\n",
"\n",
"The following NEW packages will be INSTALLED:\n",
"\n",
" _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main\n",
" asn1crypto pkgs/main/linux-64::asn1crypto-1.3.0-py38_0\n",
" ca-certificates pkgs/main/linux-64::ca-certificates-2020.1.1-0\n",
" certifi pkgs/main/linux-64::certifi-2019.11.28-py38_0\n",
" cffi pkgs/main/linux-64::cffi-1.14.0-py38h2e261b9_0\n",
" chardet pkgs/main/linux-64::chardet-3.0.4-py38_1003\n",
" conda pkgs/main/linux-64::conda-4.8.2-py38_0\n",
" conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.0-py38h7b6447c_0\n",
" cryptography pkgs/main/linux-64::cryptography-2.8-py38h1ba5d50_0\n",
" idna pkgs/main/linux-64::idna-2.8-py38_1000\n",
" ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7\n",
" libedit pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0\n",
" libffi pkgs/main/linux-64::libffi-3.2.1-hd88cf55_4\n",
" libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0\n",
" libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0\n",
" ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_0\n",
" openssl pkgs/main/linux-64::openssl-1.1.1d-h7b6447c_4\n",
" pip pkgs/main/linux-64::pip-20.0.2-py38_1\n",
" pycosat pkgs/main/linux-64::pycosat-0.6.3-py38h7b6447c_0\n",
" pycparser pkgs/main/noarch::pycparser-2.19-py_0\n",
" pyopenssl pkgs/main/linux-64::pyopenssl-19.1.0-py38_0\n",
" pysocks pkgs/main/linux-64::pysocks-1.7.1-py38_0\n",
" python pkgs/main/linux-64::python-3.8.1-h0371630_1\n",
" readline pkgs/main/linux-64::readline-7.0-h7b6447c_5\n",
" requests pkgs/main/linux-64::requests-2.22.0-py38_1\n",
" ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.87-py38h7b6447c_0\n",
" setuptools pkgs/main/linux-64::setuptools-45.2.0-py38_0\n",
" six pkgs/main/linux-64::six-1.14.0-py38_0\n",
" sqlite pkgs/main/linux-64::sqlite-3.31.1-h7b6447c_0\n",
" tk pkgs/main/linux-64::tk-8.6.8-hbc83047_0\n",
" tqdm pkgs/main/noarch::tqdm-4.42.1-py_0\n",
" urllib3 pkgs/main/linux-64::urllib3-1.25.8-py38_0\n",
" wheel pkgs/main/linux-64::wheel-0.34.2-py38_0\n",
" xz pkgs/main/linux-64::xz-5.2.4-h14c3975_4\n",
" yaml pkgs/main/linux-64::yaml-0.1.7-had09818_2\n",
" zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3\n",
"\n",
"\n",
"Preparing transaction: | \b\b/ \b\b- \b\b\\ \b\bdone\n",
"Executing transaction: / \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n",
"installation finished.\n",
"WARNING:\n",
" You currently have a PYTHONPATH environment variable set. This may cause\n",
" unexpected behavior when running the Python interpreter in Miniconda3.\n",
" For best results, please verify that your PYTHONPATH only points to\n",
" directories of packages that are compatible with the Python interpreter\n",
" in Miniconda3: /usr/local\n",
"Collecting package metadata (current_repodata.json): ...working... done\n",
"Solving environment: ...working... done\n",
"\n",
"## Package Plan ##\n",
"\n",
" environment location: /usr/local\n",
"\n",
" added / updated specs:\n",
" - jupyter\n",
"\n",
"\n",
"The following packages will be downloaded:\n",
"\n",
" package | build\n",
" ---------------------------|-----------------\n",
" _openmp_mutex-4.5 | 1_gnu 22 KB\n",
" argon2-cffi-21.3.0 | pyhd3eb1b0_0 15 KB\n",
" argon2-cffi-bindings-21.2.0| py38h7f8727e_0 33 KB\n",
" asttokens-2.0.5 | pyhd3eb1b0_0 20 KB\n",
" attrs-21.4.0 | pyhd3eb1b0_0 51 KB\n",
" backcall-0.2.0 | pyhd3eb1b0_0 13 KB\n",
" bleach-4.1.0 | pyhd3eb1b0_0 123 KB\n",
" ca-certificates-2022.2.1 | h06a4308_0 122 KB\n",
" certifi-2021.10.8 | py38h06a4308_2 152 KB\n",
" conda-4.12.0 | py38h06a4308_0 14.5 MB\n",
" dbus-1.13.18 | hb2f20db_0 504 KB\n",
" debugpy-1.5.1 | py38h295c915_0 1.7 MB\n",
" decorator-5.1.1 | pyhd3eb1b0_0 12 KB\n",
" defusedxml-0.7.1 | pyhd3eb1b0_0 23 KB\n",
" entrypoints-0.3 | py38_0 10 KB\n",
" executing-0.8.3 | pyhd3eb1b0_0 18 KB\n",
" expat-2.4.4 | h295c915_0 169 KB\n",
" fontconfig-2.13.1 | h6c09931_0 250 KB\n",
" freetype-2.11.0 | h70c0345_0 618 KB\n",
" glib-2.69.1 | h4ff587b_1 1.7 MB\n",
" gst-plugins-base-1.14.0 | h8213a91_2 4.9 MB\n",
" gstreamer-1.14.0 | h28cd5cc_2 3.2 MB\n",
" icu-58.2 | he6710b0_3 10.5 MB\n",
" importlib-metadata-4.8.2 | py38h06a4308_0 40 KB\n",
" importlib_metadata-4.8.2 | hd3eb1b0_0 12 KB\n",
" ipykernel-6.9.1 | py38h06a4308_0 199 KB\n",
" ipython-8.1.1 | py38h06a4308_0 959 KB\n",
" ipython_genutils-0.2.0 | pyhd3eb1b0_1 27 KB\n",
" ipywidgets-7.6.5 | pyhd3eb1b0_1 105 KB\n",
" jedi-0.18.1 | py38h06a4308_1 982 KB\n",
" jinja2-3.0.3 | pyhd3eb1b0_0 106 KB\n",
" jpeg-9d | h7f8727e_0 232 KB\n",
" jsonschema-3.2.0 | pyhd3eb1b0_2 47 KB\n",
" jupyter-1.0.0 | py38_7 7 KB\n",
" jupyter_client-7.1.2 | pyhd3eb1b0_0 93 KB\n",
" jupyter_console-6.4.3 | pyhd3eb1b0_0 23 KB\n",
" jupyter_core-4.9.2 | py38h06a4308_0 79 KB\n",
" jupyterlab_pygments-0.1.2 | py_0 8 KB\n",
" jupyterlab_widgets-1.0.0 | pyhd3eb1b0_1 109 KB\n",
" libffi-3.3 | he6710b0_2 50 KB\n",
" libgcc-ng-9.3.0 | h5101ec6_17 4.8 MB\n",
" libgomp-9.3.0 | h5101ec6_17 311 KB\n",
" libpng-1.6.37 | hbc83047_0 278 KB\n",
" libsodium-1.0.18 | h7b6447c_0 244 KB\n",
" libuuid-1.0.3 | h7f8727e_2 17 KB\n",
" libxcb-1.14 | h7b6447c_0 505 KB\n",
" libxml2-2.9.12 | h03d6c58_0 1.2 MB\n",
" markupsafe-2.0.1 | py38h27cfd23_0 22 KB\n",
" matplotlib-inline-0.1.2 | pyhd3eb1b0_2 12 KB\n",
" mistune-0.8.4 |py38h7b6447c_1000 55 KB\n",
" nbclient-0.5.11 | pyhd3eb1b0_0 62 KB\n",
" nbconvert-6.3.0 | py38h06a4308_0 490 KB\n",
" nbformat-5.1.3 | pyhd3eb1b0_0 44 KB\n",
" nest-asyncio-1.5.1 | pyhd3eb1b0_0 10 KB\n",
" notebook-6.4.8 | py38h06a4308_0 4.2 MB\n",
" openssl-1.1.1m | h7f8727e_0 2.5 MB\n",
" packaging-21.3 | pyhd3eb1b0_0 36 KB\n",
" pandocfilters-1.5.0 | pyhd3eb1b0_0 11 KB\n",
" parso-0.8.3 | pyhd3eb1b0_0 70 KB\n",
" pcre-8.45 | h295c915_0 207 KB\n",
" pexpect-4.8.0 | pyhd3eb1b0_3 53 KB\n",
" pickleshare-0.7.5 | pyhd3eb1b0_1003 13 KB\n",
" prometheus_client-0.13.1 | pyhd3eb1b0_0 47 KB\n",
" prompt-toolkit-3.0.20 | pyhd3eb1b0_0 259 KB\n",
" prompt_toolkit-3.0.20 | hd3eb1b0_0 12 KB\n",
" ptyprocess-0.7.0 | pyhd3eb1b0_2 17 KB\n",
" pure_eval-0.2.2 | pyhd3eb1b0_0 14 KB\n",
" pygments-2.11.2 | pyhd3eb1b0_0 759 KB\n",
" pyparsing-3.0.4 | pyhd3eb1b0_0 81 KB\n",
" pyqt-5.9.2 | py38h05f1152_4 4.5 MB\n",
" pyrsistent-0.18.0 | py38heee7806_0 94 KB\n",
" python-dateutil-2.8.2 | pyhd3eb1b0_0 233 KB\n",
" pyzmq-22.3.0 | py38h295c915_2 476 KB\n",
" qt-5.9.7 | h5867ecd_1 68.5 MB\n",
" qtconsole-5.2.2 | pyhd3eb1b0_0 92 KB\n",
" qtpy-1.11.2 | pyhd3eb1b0_0 37 KB\n",
" send2trash-1.8.0 | pyhd3eb1b0_1 19 KB\n",
" sip-4.19.13 | py38h295c915_0 279 KB\n",
" stack_data-0.2.0 | pyhd3eb1b0_0 22 KB\n",
" terminado-0.13.1 | py38h06a4308_0 30 KB\n",
" testpath-0.5.0 | pyhd3eb1b0_0 81 KB\n",
" tornado-6.1 | py38h27cfd23_0 588 KB\n",
" traitlets-5.1.1 | pyhd3eb1b0_0 84 KB\n",
" typing-extensions-3.10.0.2 | hd3eb1b0_0 12 KB\n",
" typing_extensions-3.10.0.2 | pyh06a4308_0 31 KB\n",
" wcwidth-0.2.5 | pyhd3eb1b0_0 26 KB\n",
" webencodings-0.5.1 | py38_1 20 KB\n",
" widgetsnbextension-3.5.2 | py38h06a4308_0 651 KB\n",
" xz-5.2.5 | h7b6447c_0 341 KB\n",
" zeromq-4.3.4 | h2531618_0 331 KB\n",
" zipp-3.7.0 | pyhd3eb1b0_0 12 KB\n",
" ------------------------------------------------------------\n",
" Total: 134.3 MB\n",
"\n",
"The following NEW packages will be INSTALLED:\n",
"\n",
" _openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu\n",
" argon2-cffi pkgs/main/noarch::argon2-cffi-21.3.0-pyhd3eb1b0_0\n",
" argon2-cffi-bindi~ pkgs/main/linux-64::argon2-cffi-bindings-21.2.0-py38h7f8727e_0\n",
" asttokens pkgs/main/noarch::asttokens-2.0.5-pyhd3eb1b0_0\n",
" attrs pkgs/main/noarch::attrs-21.4.0-pyhd3eb1b0_0\n",
" backcall pkgs/main/noarch::backcall-0.2.0-pyhd3eb1b0_0\n",
" bleach pkgs/main/noarch::bleach-4.1.0-pyhd3eb1b0_0\n",
" dbus pkgs/main/linux-64::dbus-1.13.18-hb2f20db_0\n",
" debugpy pkgs/main/linux-64::debugpy-1.5.1-py38h295c915_0\n",
" decorator pkgs/main/noarch::decorator-5.1.1-pyhd3eb1b0_0\n",
" defusedxml pkgs/main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0\n",
" entrypoints pkgs/main/linux-64::entrypoints-0.3-py38_0\n",
" executing pkgs/main/noarch::executing-0.8.3-pyhd3eb1b0_0\n",
" expat pkgs/main/linux-64::expat-2.4.4-h295c915_0\n",
" fontconfig pkgs/main/linux-64::fontconfig-2.13.1-h6c09931_0\n",
" freetype pkgs/main/linux-64::freetype-2.11.0-h70c0345_0\n",
" glib pkgs/main/linux-64::glib-2.69.1-h4ff587b_1\n",
" gst-plugins-base pkgs/main/linux-64::gst-plugins-base-1.14.0-h8213a91_2\n",
" gstreamer pkgs/main/linux-64::gstreamer-1.14.0-h28cd5cc_2\n",
" icu pkgs/main/linux-64::icu-58.2-he6710b0_3\n",
" importlib-metadata pkgs/main/linux-64::importlib-metadata-4.8.2-py38h06a4308_0\n",
" importlib_metadata pkgs/main/noarch::importlib_metadata-4.8.2-hd3eb1b0_0\n",
" ipykernel pkgs/main/linux-64::ipykernel-6.9.1-py38h06a4308_0\n",
" ipython pkgs/main/linux-64::ipython-8.1.1-py38h06a4308_0\n",
" ipython_genutils pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1\n",
" ipywidgets pkgs/main/noarch::ipywidgets-7.6.5-pyhd3eb1b0_1\n",
" jedi pkgs/main/linux-64::jedi-0.18.1-py38h06a4308_1\n",
" jinja2 pkgs/main/noarch::jinja2-3.0.3-pyhd3eb1b0_0\n",
" jpeg pkgs/main/linux-64::jpeg-9d-h7f8727e_0\n",
" jsonschema pkgs/main/noarch::jsonschema-3.2.0-pyhd3eb1b0_2\n",
" jupyter pkgs/main/linux-64::jupyter-1.0.0-py38_7\n",
" jupyter_client pkgs/main/noarch::jupyter_client-7.1.2-pyhd3eb1b0_0\n",
" jupyter_console pkgs/main/noarch::jupyter_console-6.4.3-pyhd3eb1b0_0\n",
" jupyter_core pkgs/main/linux-64::jupyter_core-4.9.2-py38h06a4308_0\n",
" jupyterlab_pygmen~ pkgs/main/noarch::jupyterlab_pygments-0.1.2-py_0\n",
" jupyterlab_widgets pkgs/main/noarch::jupyterlab_widgets-1.0.0-pyhd3eb1b0_1\n",
" libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17\n",
" libpng pkgs/main/linux-64::libpng-1.6.37-hbc83047_0\n",
" libsodium pkgs/main/linux-64::libsodium-1.0.18-h7b6447c_0\n",
" libuuid pkgs/main/linux-64::libuuid-1.0.3-h7f8727e_2\n",
" libxcb pkgs/main/linux-64::libxcb-1.14-h7b6447c_0\n",
" libxml2 pkgs/main/linux-64::libxml2-2.9.12-h03d6c58_0\n",
" markupsafe pkgs/main/linux-64::markupsafe-2.0.1-py38h27cfd23_0\n",
" matplotlib-inline pkgs/main/noarch::matplotlib-inline-0.1.2-pyhd3eb1b0_2\n",
" mistune pkgs/main/linux-64::mistune-0.8.4-py38h7b6447c_1000\n",
" nbclient pkgs/main/noarch::nbclient-0.5.11-pyhd3eb1b0_0\n",
" nbconvert pkgs/main/linux-64::nbconvert-6.3.0-py38h06a4308_0\n",
" nbformat pkgs/main/noarch::nbformat-5.1.3-pyhd3eb1b0_0\n",
" nest-asyncio pkgs/main/noarch::nest-asyncio-1.5.1-pyhd3eb1b0_0\n",
" notebook pkgs/main/linux-64::notebook-6.4.8-py38h06a4308_0\n",
" packaging pkgs/main/noarch::packaging-21.3-pyhd3eb1b0_0\n",
" pandocfilters pkgs/main/noarch::pandocfilters-1.5.0-pyhd3eb1b0_0\n",
" parso pkgs/main/noarch::parso-0.8.3-pyhd3eb1b0_0\n",
" pcre pkgs/main/linux-64::pcre-8.45-h295c915_0\n",
" pexpect pkgs/main/noarch::pexpect-4.8.0-pyhd3eb1b0_3\n",
" pickleshare pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003\n",
" prometheus_client pkgs/main/noarch::prometheus_client-0.13.1-pyhd3eb1b0_0\n",
" prompt-toolkit pkgs/main/noarch::prompt-toolkit-3.0.20-pyhd3eb1b0_0\n",
" prompt_toolkit pkgs/main/noarch::prompt_toolkit-3.0.20-hd3eb1b0_0\n",
" ptyprocess pkgs/main/noarch::ptyprocess-0.7.0-pyhd3eb1b0_2\n",
" pure_eval pkgs/main/noarch::pure_eval-0.2.2-pyhd3eb1b0_0\n",
" pygments pkgs/main/noarch::pygments-2.11.2-pyhd3eb1b0_0\n",
" pyparsing pkgs/main/noarch::pyparsing-3.0.4-pyhd3eb1b0_0\n",
" pyqt pkgs/main/linux-64::pyqt-5.9.2-py38h05f1152_4\n",
" pyrsistent pkgs/main/linux-64::pyrsistent-0.18.0-py38heee7806_0\n",
" python-dateutil pkgs/main/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0\n",
" pyzmq pkgs/main/linux-64::pyzmq-22.3.0-py38h295c915_2\n",
" qt pkgs/main/linux-64::qt-5.9.7-h5867ecd_1\n",
" qtconsole pkgs/main/noarch::qtconsole-5.2.2-pyhd3eb1b0_0\n",
" qtpy pkgs/main/noarch::qtpy-1.11.2-pyhd3eb1b0_0\n",
" send2trash pkgs/main/noarch::send2trash-1.8.0-pyhd3eb1b0_1\n",
" sip pkgs/main/linux-64::sip-4.19.13-py38h295c915_0\n",
" stack_data pkgs/main/noarch::stack_data-0.2.0-pyhd3eb1b0_0\n",
" terminado pkgs/main/linux-64::terminado-0.13.1-py38h06a4308_0\n",
" testpath pkgs/main/noarch::testpath-0.5.0-pyhd3eb1b0_0\n",
" tornado pkgs/main/linux-64::tornado-6.1-py38h27cfd23_0\n",
" traitlets pkgs/main/noarch::traitlets-5.1.1-pyhd3eb1b0_0\n",
" typing-extensions pkgs/main/noarch::typing-extensions-3.10.0.2-hd3eb1b0_0\n",
" typing_extensions pkgs/main/noarch::typing_extensions-3.10.0.2-pyh06a4308_0\n",
" wcwidth pkgs/main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0\n",
" webencodings pkgs/main/linux-64::webencodings-0.5.1-py38_1\n",
" widgetsnbextension pkgs/main/linux-64::widgetsnbextension-3.5.2-py38h06a4308_0\n",
" zeromq pkgs/main/linux-64::zeromq-4.3.4-h2531618_0\n",
" zipp pkgs/main/noarch::zipp-3.7.0-pyhd3eb1b0_0\n",
"\n",
"The following packages will be UPDATED:\n",
"\n",
" ca-certificates 2020.1.1-0 --> 2022.2.1-h06a4308_0\n",
" certifi 2019.11.28-py38_0 --> 2021.10.8-py38h06a4308_2\n",
" conda 4.8.2-py38_0 --> 4.12.0-py38h06a4308_0\n",
" libffi 3.2.1-hd88cf55_4 --> 3.3-he6710b0_2\n",
" libgcc-ng 9.1.0-hdf63c60_0 --> 9.3.0-h5101ec6_17\n",
" openssl 1.1.1d-h7b6447c_4 --> 1.1.1m-h7f8727e_0\n",
" xz 5.2.4-h14c3975_4 --> 5.2.5-h7b6447c_0\n",
"\n",
"\n",
"Preparing transaction: ...working... done\n",
"Verifying transaction: ...working... done\n",
"Executing transaction: ...working... done\n",
"Collecting package metadata (current_repodata.json): ...working... done\n",
"Solving environment: ...working... done\n",
"\n",
"## Package Plan ##\n",
"\n",
" environment location: /usr/local\n",
"\n",
" added / updated specs:\n",
" - google-colab\n",
"\n",
"\n",
"The following packages will be downloaded:\n",
"\n",
" package | build\n",
" ---------------------------|-----------------\n",
" aiohttp-3.7.4.post0 | py38h7f8727e_2 553 KB\n",
" async-timeout-3.0.1 | py_1000 11 KB conda-forge\n",
" ca-certificates-2021.10.8 | ha878542_0 139 KB conda-forge\n",
" cachetools-5.0.0 | pyhd8ed1ab_0 12 KB conda-forge\n",
" certifi-2021.10.8 | py38h578d9bd_1 145 KB conda-forge\n",
" conda-4.12.0 | py38h578d9bd_0 1.0 MB conda-forge\n",
" cryptography-35.0.0 | py38ha5dfef3_0 1.5 MB conda-forge\n",
" google-auth-2.6.0 | pyh6c4a22f_1 83 KB conda-forge\n",
" google-colab-1.0.0 | pyh44b312d_0 77 KB conda-forge\n",
" libblas-3.9.0 |11_linux64_openblas 12 KB conda-forge\n",
" libcblas-3.9.0 |11_linux64_openblas 11 KB conda-forge\n",
" libgfortran-ng-11.2.0 | h69a702a_14 20 KB conda-forge\n",
" libgfortran5-11.2.0 | h5c6108e_14 1.7 MB conda-forge\n",
" liblapack-3.9.0 |11_linux64_openblas 11 KB conda-forge\n",
" libopenblas-0.3.17 |pthreads_h8fe5266_1 9.2 MB conda-forge\n",
" multidict-5.2.0 | py38h7f8727e_2 64 KB\n",
" numpy-1.20.3 | py38h9894fe3_1 5.8 MB conda-forge\n",
" pandas-1.0.5 | py38hcb8c335_0 10.5 MB conda-forge\n",
" portpicker-1.3.1 | py38h06a4308_0 260 KB\n",
" pyasn1-0.4.8 | py_0 53 KB conda-forge\n",
" pyasn1-modules-0.2.7 | py_0 60 KB conda-forge\n",
" pyopenssl-22.0.0 | pyhd8ed1ab_0 49 KB conda-forge\n",
" python_abi-3.8 | 2_cp38 4 KB conda-forge\n",
" pytz-2021.3 | pyhd8ed1ab_0 242 KB conda-forge\n",
" pyu2f-0.1.5 | pyhd8ed1ab_0 31 KB conda-forge\n",
" rsa-4.8 | pyhd8ed1ab_0 31 KB conda-forge\n",
" yarl-1.6.3 | py38h27cfd23_0 136 KB\n",
" ------------------------------------------------------------\n",
" Total: 31.7 MB\n",
"\n",
"The following NEW packages will be INSTALLED:\n",
"\n",
" aiohttp pkgs/main/linux-64::aiohttp-3.7.4.post0-py38h7f8727e_2\n",
" async-timeout conda-forge/noarch::async-timeout-3.0.1-py_1000\n",
" cachetools conda-forge/noarch::cachetools-5.0.0-pyhd8ed1ab_0\n",
" google-auth conda-forge/noarch::google-auth-2.6.0-pyh6c4a22f_1\n",
" google-colab conda-forge/noarch::google-colab-1.0.0-pyh44b312d_0\n",
" libblas conda-forge/linux-64::libblas-3.9.0-11_linux64_openblas\n",
" libcblas conda-forge/linux-64::libcblas-3.9.0-11_linux64_openblas\n",
" libgfortran-ng conda-forge/linux-64::libgfortran-ng-11.2.0-h69a702a_14\n",
" libgfortran5 conda-forge/linux-64::libgfortran5-11.2.0-h5c6108e_14\n",
" liblapack conda-forge/linux-64::liblapack-3.9.0-11_linux64_openblas\n",
" libopenblas conda-forge/linux-64::libopenblas-0.3.17-pthreads_h8fe5266_1\n",
" multidict pkgs/main/linux-64::multidict-5.2.0-py38h7f8727e_2\n",
" numpy conda-forge/linux-64::numpy-1.20.3-py38h9894fe3_1\n",
" pandas conda-forge/linux-64::pandas-1.0.5-py38hcb8c335_0\n",
" portpicker pkgs/main/linux-64::portpicker-1.3.1-py38h06a4308_0\n",
" pyasn1 conda-forge/noarch::pyasn1-0.4.8-py_0\n",
" pyasn1-modules conda-forge/noarch::pyasn1-modules-0.2.7-py_0\n",
" python_abi conda-forge/linux-64::python_abi-3.8-2_cp38\n",
" pytz conda-forge/noarch::pytz-2021.3-pyhd8ed1ab_0\n",
" pyu2f conda-forge/noarch::pyu2f-0.1.5-pyhd8ed1ab_0\n",
" rsa conda-forge/noarch::rsa-4.8-pyhd8ed1ab_0\n",
" yarl pkgs/main/linux-64::yarl-1.6.3-py38h27cfd23_0\n",
"\n",
"The following packages will be UPDATED:\n",
"\n",
" cryptography pkgs/main::cryptography-2.8-py38h1ba5~ --> conda-forge::cryptography-35.0.0-py38ha5dfef3_0\n",
" pyopenssl pkgs/main/linux-64::pyopenssl-19.1.0-~ --> conda-forge/noarch::pyopenssl-22.0.0-pyhd8ed1ab_0\n",
"\n",
"The following packages will be SUPERSEDED by a higher-priority channel:\n",
"\n",
" ca-certificates pkgs/main::ca-certificates-2022.2.1-h~ --> conda-forge::ca-certificates-2021.10.8-ha878542_0\n",
" certifi pkgs/main::certifi-2021.10.8-py38h06a~ --> conda-forge::certifi-2021.10.8-py38h578d9bd_1\n",
" conda pkgs/main::conda-4.12.0-py38h06a4308_0 --> conda-forge::conda-4.12.0-py38h578d9bd_0\n",
"\n",
"\n",
"Preparing transaction: ...working... done\n",
"Verifying transaction: ...working... done\n",
"Executing transaction: ...working... done\n",
"Installed kernelspec py38 in /root/.local/share/jupyter/kernels/py38\n"
]
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "H80WJWdPFLFL",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "6972f8b5-9f85-4953-e907-986ba6972eb5"
},
"source": [
"# Reload the web page and execute this cell\n",
"import sys\n",
"print(\"User Current Version:-\", sys.version)"
],
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"User Current Version:- 3.8.1 (default, Jan 8 2020, 22:29:32) \n",
"[GCC 7.3.0]\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
""
],
"metadata": {
"id": "SkHVmfncvYbQ"
}
}
]
}
@matanox
Copy link

matanox commented Mar 18, 2022

Could we equally pull it off without conda/anaconda/miniconda?

@ngrislain
Copy link
Author

Yes, I also tried with:

!apt-get install python3.5
!curl -O https://bootstrap.pypa.io/pip/3.5/get-pip.py
!python3.5 get-pip.py
!python3.5 -m pip install jupyter google-colab
!python3.5 -m ipykernel install --name "py35" --user

@matanox
Copy link

matanox commented Mar 19, 2022

Looks awesome. I see this can go up to 3.9.1 with the miniconda approach and up to 3.6 with the pypa repository. I guess for newer versions one has to build their python version of choice on their own. Never tried that myself to be honest.

@avm19
Copy link

avm19 commented Apr 4, 2022

Are you able to mount Google Drive in the new runtime? It looks like google-colab fails so badly it can't even print its own logs.
Whenever I try

from google.colab import drive
drive.mount('/gdrive')

I get

`grep: /root/.config/Google/DriveFS/Logs/drive_fs.txt: No such file or directory
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [3], in <cell line: 2>()
      1 from google.colab import drive
----> 2 drive.mount('/gdrive')

File /usr/local/lib/python3.8/site-packages/google/colab/drive.py:180, in mount(mountpoint, force_remount, timeout_ms)
    175   if 0 == _subprocess.call(
    176       'grep -q "{}" "{}"'.format(timeout_pattern, dfs_log), shell=True):
    177     extra_reason = (
    178         ': timeout during initial read of root folder; for more info: '
    179         'https://research.google.com/colaboratory/faq.html#drive-timeout')
--> 180   raise ValueError('mount failed' + extra_reason)
    181 elif case == 2:
    182   # Not already authorized, so do the authorization dance.
    183   auth_prompt = d.match.group(1) + '\n\nEnter your authorization code:\n'

ValueError: mount failed

P.S. A workaround is to mount the drive before running the top cell, but this is less than ideal.

@siahuat0727
Copy link

siahuat0727 commented Apr 22, 2022

Hi, thank you for sharing!
I tried the same code on a new notebook, but it failed. (I have refreshed the webpage)
I found a difference in my notebook, after running this cell to install Python, refresh the page and select Runtime -> Change runtime type, the notebook settings don't provide an option for runtime type.

Is there anything else we need to do to select the runtime type?
Any feedback you can give me on this would be greatly appreciated. Thank you.

image

image

@avm19
Copy link

avm19 commented Apr 22, 2022

@siahuat0727 The same code is not enough. It must be the same notebook, because the notebook file itself contains important metadata. If you came here from a post on StackOverflow, then refer back to the question: it is mentioned there what changes are made to the notebook file.

@siahuat0727
Copy link

siahuat0727 commented Apr 22, 2022

@avm19
Got it! Thanks a lot!

In case someone comes here later, here is the post.

@vak
Copy link

vak commented Nov 22, 2022

@ngrislain Cool, thanks!
Anyone knows how to turn on syntax highlighting?

@Arslan-Mehmood1
Copy link

I'm having the same issue of no python syntax highlighting working.

@smokingkrillz
Copy link

My google colab is stuck here: Connecting to py38 Google Compute Engine backend, after showing this message for a long time, it disconnects. Any tips?

@KemononLine
Copy link

My colab also is stuck at the same stage: disconnect-retry-disconnect...

@ubuangel
Copy link

ubuangel commented May 3, 2024

My colab also is stuck at the same stage: disconnect-retry-disconnect...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment