microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 293 forks source link

Jupyter keeps running the 'base' conda environment #4952

Closed elkir closed 3 years ago

elkir commented 3 years ago

Issue Type: Bug

I have a specific conda environment 'my_env'.

I can select it to be used as a kernel, in the top right of the notebook, with "Jupyter Server: local".

But, when I try to execute code in the notebook, such as os.getenv('CONDA_DEFAULT_ENV') it still says it's using the 'base' environment, and can't find the installed packages.

Bottom left of VS Code says the interpreter is Python....('my_env'). When I open a new terminal it activates 'my_env' but the kernel keeps running 'base'.

This used to work well, but now it's broken.

Extension version: 2021.2.576440691 VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:44.518Z) OS version: Linux x64 5.8.0-43-generic snap

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 2932)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|3, 3, 3| |Memory (System)|15.49GB (1.72GB free)| |Process Argv|--force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id e0b4888e-7039-4296-a9e5-65e00d3fce86| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspyt653:30253241 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry244:30256636 pythonvsdeb440:30248342 pythonvsded773:30248341 vstes627:30244334 pythonvspyt875:30259475 dockersubsetcf:30263000 ```
DonJayamanne commented 3 years ago

Thanks for filing this issue, we have seen a few reports related to conda. Please could you revert your Python extension to a version from December, I'd like to check if that fixes it. To install an older version just go to the extensions tab & click the gear icon & select Install Another Version, see here Screen Shot 2021-02-25 at 07 19 59

Finally: Please could you enable logging as follows:

Thanks

BobKerns commented 3 years ago

I have the same problem. Downgrading Python doesn't help, with either the first or the last version from December.

It seems to be confusing my conda environment (quantecon2) for a virtual environment, which I never use. Haven't ever used on this computer, in fact.

Log output:

User belongs to experiment group 'pythonJoinMailingListVar3'
User belongs to experiment group 'jupyterTest'
Info 2021-02-28 17:52:27: id is 8f7668e7-83df-42dd-b952-9a6b2429fcb0
Info 2021-02-28 17:52:27: Attempting to start a server because of preload conditions ...
Info 2021-02-28 17:52:27: ZMQ install verified.
Info 2021-02-28 17:52:27: Found existing keyfile at /Users/rwk/Library/Application Support/Code/User/globalStorage/ms-toolsai.jupyter/nbsecret
Info 2021-02-28 17:52:27: Checking if notebook is trusted
Info 2021-02-28 17:52:27: Trusted, Class name = p, completed in 18ms, has a truthy return value, Return Value: true
Info 2021-02-28 17:52:27: Loading web panel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:27: Loading webview. View is notset
Info 2021-02-28 17:52:27: Attempting to start a server because of preload conditions ...
Info 2021-02-28 17:52:27: Loading web view...
Info 2021-02-28 17:52:27: Webview panel created.
Info 2021-02-28 17:52:27: Creating raw notebook for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:27: Getting preferred kernel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:27: Searching for kernel based on {"display_name":"Python 3","language":"python","name":"python3"} for /Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json for /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/opt/anaconda3/share/jupyter/kernels/python3/kernel.json for /Users/rwk/opt/anaconda3/bin/python
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/opt/anaconda3/envs/arduino/share/jupyter/kernels/python3/kernel.json for /Users/rwk/opt/anaconda3/envs/arduino/bin/python
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/opt/anaconda3/envs/napri/share/jupyter/kernels/python3/kernel.json for /Users/rwk/opt/anaconda3/envs/napri/bin/python
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/opt/anaconda3/envs/quantecon/share/jupyter/kernels/python3/kernel.json for /Users/rwk/opt/anaconda3/envs/quantecon/bin/python
Info 2021-02-28 17:52:27: Loading kernelspec from /Users/rwk/opt/anaconda3/envs/quantecon2/share/jupyter/kernels/python3/kernel.json for /Users/rwk/opt/anaconda3/envs/quantecon2/bin/python
Info 2021-02-28 17:52:28: Search all interpreters /Users/rwk/.conda/envs/RanPy/bin/python, /Users/rwk/opt/anaconda3/bin/python, /Users/rwk/opt/anaconda3/envs/Hiromi/bin/python, /Users/rwk/opt/anaconda3/envs/arduino/bin/python, /Users/rwk/opt/anaconda3/envs/chem/bin/python, /Users/rwk/opt/anaconda3/envs/napri/bin/python, /Users/rwk/opt/anaconda3/envs/pytorch-CycleGAN-and-pix2pix/bin/python, /Users/rwk/opt/anaconda3/envs/quantecon/bin/python, /Users/rwk/opt/anaconda3/envs/quantecon2/bin/python, /opt/local/bin/python2.7, /opt/local/bin/python3.6, /opt/local/bin/python3.7, /opt/local/bin/python3.8, /opt/local/bin/python3.9, /usr/bin/python, /usr/bin/python3, /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Info 2021-02-28 17:52:28: Find kernel spec, Class name = D, completed in 788ms, has a truthy return value, Arg 1: <Uri:/Users/rwk/p/lecture-python.notebooks/ifp.ipynb>, Arg 2: {"date":1614476360.580752,"filename":"ifp.rst","kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.8.8"},"next_doc":{"link":"ifp_advanced","title":"The Income Fluctuation Problem II: Stochastic Returns on Assets"},"prev_doc":{"link":"egm_policy_iter","title":"Optimal Growth IV: The Endogenous Grid Method"},"title":"The Income Fluctuation Problem I: Basic Model"}, Arg 3: undefined, Return Value: {"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"}
Info 2021-02-28 17:52:28: Loading kernelspec from /usr/local/share/jupyter/kernels/ir/kernel.json for undefined
Info 2021-02-28 17:52:28: Loading kernelspec from /usr/local/share/jupyter/kernels/typescript/kernel.json for undefined
Info 2021-02-28 17:52:28: Loading kernelspec from /Users/rwk/Library/Jupyter/kernels/javascript/kernel.json for undefined
Info 2021-02-28 17:52:28: Loading kernelspec from /Users/rwk/Library/Jupyter/kernels/typescript/kernel.json for undefined
Info 2021-02-28 17:52:28: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/opt/anaconda3/envs/quantecon2/bin/python
Info 2021-02-28 17:52:28: Find matching interpreter for a given kernel spec, Class name = P, completed in 41ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/opt/anaconda3/envs/quantecon2/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/opt/anaconda3/envs/quantecon2/bin/python","name":"python3","argv":["/Users/rwk/opt/anaconda3/envs/quantecon2/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/opt/anaconda3/envs/quantecon2/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/opt/anaconda3/envs/quantecon2/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.8-final","major":3,"minor":8,"patch":8,"prerelease":["final"],"build":[],"version":"3.8.8-final"},"sysVersion":"3.8.8 (default, Feb 24 2021, 13:46:16) \n[Clang 10.0.0 ]","sysPrefix":"/Users/rwk/opt/anaconda3/envs/quantecon2","fileHash":"654e7ec04075b0d8ec95f69e406fe84a2a5fde4b6ae29dccc6e1b23dc4c036b3e81e7f7ea128993a5d5d667edd5ea38b226c87ca22d5f8985a5b80a250f175c3","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/Users/rwk/opt/anaconda3/envs/quantecon2","envName":"quantecon2","displayName":"Python 3.8.8 64-bit ('quantecon2': conda)"}
Info 2021-02-28 17:52:28: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/opt/anaconda3/bin/python
Info 2021-02-28 17:52:28: Find matching interpreter for a given kernel spec, Class name = P, completed in 42ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/opt/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/opt/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/opt/anaconda3/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/opt/anaconda3/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/opt/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.4-final","major":3,"minor":7,"patch":4,"prerelease":["final"],"build":[],"version":"3.7.4-final"},"sysVersion":"3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/opt/anaconda3","fileHash":"e8865724c49f4a008f90f21405e308d8d2df530fc6b35e797802e557219befe4d858cdc9fdbbf6fcf7f64f7d183373db7566a54cbca9078b08e058fb5b903937","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/Users/rwk/opt/anaconda3","envName":"base","displayName":"Python 3.7.4 64-bit ('base': conda)"}
Info 2021-02-28 17:52:28: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/opt/anaconda3/envs/arduino/bin/python
Info 2021-02-28 17:52:28: Find matching interpreter for a given kernel spec, Class name = P, completed in 42ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/opt/anaconda3/envs/arduino/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/opt/anaconda3/envs/arduino/bin/python","name":"python3","argv":["/Users/rwk/opt/anaconda3/envs/arduino/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/opt/anaconda3/envs/arduino/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/opt/anaconda3/envs/arduino/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.9-final","major":3,"minor":7,"patch":9,"prerelease":["final"],"build":[],"version":"3.7.9-final"},"sysVersion":"3.7.9 (default, Aug 31 2020, 07:22:35) \n[Clang 10.0.0 ]","sysPrefix":"/Users/rwk/opt/anaconda3/envs/arduino","fileHash":"abb007f4599b8c4bc24b7905b211984ec25aece375bf06f6f6e74c7268fe44a1ae8e64230227a5e6e265f3e971020aa892066763648b86c9f24045691723eb84","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/Users/rwk/opt/anaconda3/envs/arduino","envName":"arduino","displayName":"Python 3.7.9 64-bit ('arduino': conda)"}
Info 2021-02-28 17:52:28: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/opt/anaconda3/envs/napri/bin/python
Info 2021-02-28 17:52:28: Find matching interpreter for a given kernel spec, Class name = P, completed in 42ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/opt/anaconda3/envs/napri/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/opt/anaconda3/envs/napri/bin/python","name":"python3","argv":["/Users/rwk/opt/anaconda3/envs/napri/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/opt/anaconda3/envs/napri/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/opt/anaconda3/envs/napri/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.4-final","major":3,"minor":7,"patch":4,"prerelease":["final"],"build":[],"version":"3.7.4-final"},"sysVersion":"3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/opt/anaconda3/envs/napri","fileHash":"ad1124e40c57fb82798be0b3cf280976f312385055aed5a141fa2c1b98cae3e0afc9d49eb7b2e5264c9d5c1a8ab3a00e97905779d040da26d4fb92478e7cb041","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/Users/rwk/opt/anaconda3/envs/napri","envName":"napri","displayName":"Python 3.7.4 64-bit ('napri': conda)"}
Info 2021-02-28 17:52:28: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/opt/anaconda3/envs/quantecon/bin/python
Info 2021-02-28 17:52:28: Find matching interpreter for a given kernel spec, Class name = P, completed in 43ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/opt/anaconda3/envs/quantecon/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/opt/anaconda3/envs/quantecon/bin/python","name":"python3","argv":["/Users/rwk/opt/anaconda3/envs/quantecon/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/opt/anaconda3/envs/quantecon/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/opt/anaconda3/envs/quantecon/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.4-final","major":3,"minor":7,"patch":4,"prerelease":["final"],"build":[],"version":"3.7.4-final"},"sysVersion":"3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/opt/anaconda3/envs/quantecon","fileHash":"68276a91a0b484513067cff490fedec5ce17c32a1b06592a64e508f1f3898a7538566fdfd00b53120b8d57f3f6d3d3fe74cc871b8a6f68b09f2bbb5fdda985d1","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/Users/rwk/opt/anaconda3/envs/quantecon","envName":"quantecon","displayName":"Python 3.7.4 64-bit ('quantecon': conda)"}
Info 2021-02-28 17:52:29: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
Info 2021-02-28 17:52:29: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
Info 2021-02-28 17:52:29: Web view react rendered
Info 2021-02-28 17:52:29: Request for onigasm file at /Users/rwk/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/out/client/node_modules/onigasm/lib/onigasm.wasm
Info 2021-02-28 17:52:29: Searching for token colors ...
Info 2021-02-28 17:52:29: Attempting search for colors ...
Info 2021-02-28 17:52:29: Request for tmlanguage file.
Info 2021-02-28 17:52:29: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py jupyter kernelspec --version
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py jupyter kernelspec --version
Info 2021-02-28 17:52:29: Searching for token colors ...
Info 2021-02-28 17:52:29: Attempting search for colors ...
Info 2021-02-28 17:52:29: Found matching interpreter based on interpreter or interpreterPath in metadata, for the kernel python3, Python 3, /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:29: Find matching interpreter for a given kernel spec, Class name = P, completed in 1013ms, has a truthy return value, Arg 1: {"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"}, Arg 2: undefined, Return Value: {"architecture":3,"path":"/Users/rwk/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysVersion":"3.7.1 (default, Dec 14 2018, 13:28:58) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/anaconda3","fileHash":"7a2c2a2135d48729ebd9a14e89ddd12ff3929b03596c4e1c6f6ac9f27db10afba6693cb7a588c1b5ac750bdf43e15b81a4fb21e0f6ad8b201d67393d44dc892c","envType":"VirtualEnv","envName":"anaconda3","displayName":"Python 3.7.1 64-bit ('anaconda3': virtualenv)"}
Info 2021-02-28 17:52:29: installMissingDependencies /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:29: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-02-28 17:52:29: Searching for token colors ...
Info 2021-02-28 17:52:29: Attempting search for colors ...
Info 2021-02-28 17:52:29: Searching for token colors ...
Info 2021-02-28 17:52:29: Attempting search for colors ...
Info 2021-02-28 17:52:29: Install Missing Dependencies, Class name = g, completed in 519ms, has a falsy return value, Return Value: 0
Info 2021-02-28 17:52:29: Find kernel spec, Class name = L, completed in 2432ms, has a truthy return value, Arg 1: <Uri:/Users/rwk/p/lecture-python.notebooks/ifp.ipynb>, Arg 2: {"date":1614476360.580752,"filename":"ifp.rst","kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.8.8"},"next_doc":{"link":"ifp_advanced","title":"The Income Fluctuation Problem II: Stochastic Returns on Assets"},"prev_doc":{"link":"egm_policy_iter","title":"Optimal Growth IV: The Endogenous Grid Method"},"title":"The Income Fluctuation Problem I: Basic Model"}, Arg 3: undefined, Arg 4: undefined, Return Value: {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"},"interpreter":{"architecture":3,"path":"/Users/rwk/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysVersion":"3.7.1 (default, Dec 14 2018, 13:28:58) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/anaconda3","fileHash":"7a2c2a2135d48729ebd9a14e89ddd12ff3929b03596c4e1c6f6ac9f27db10afba6693cb7a588c1b5ac750bdf43e15b81a4fb21e0f6ad8b201d67393d44dc892c","envType":"VirtualEnv","envName":"anaconda3","displayName":"Python 3.7.1 64-bit ('anaconda3': virtualenv)"}}
Info 2021-02-28 17:52:29: Get preferred local kernel connection, Class name = L, completed in 2435ms, has a truthy return value
Info 2021-02-28 17:52:29: Computing working directory file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:29: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py pip list
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py pip list
Info 2021-02-28 17:52:29: Connecting to raw session for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb with connection {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"},"interpreter":{"architecture":3,"path":"/Users/rwk/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysVersion":"3.7.1 (default, Dec 14 2018, 13:28:58) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/anaconda3","fileHash":"7a2c2a2135d48729ebd9a14e89ddd12ff3929b03596c4e1c6f6ac9f27db10afba6693cb7a588c1b5ac750bdf43e15b81a4fb21e0f6ad8b201d67393d44dc892c","envType":"VirtualEnv","envName":"anaconda3","displayName":"Python 3.7.1 64-bit ('anaconda3': virtualenv)"}}
Info 2021-02-28 17:52:29: installMissingDependencies /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:30: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-02-28 17:52:30: Searching for token colors ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Searching for token colors ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Searching for token colors ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Searching for token colors ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Attempting search for colors ...
Info 2021-02-28 17:52:30: Loading base colors from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/theme-defaults/themes/dark_plus.json ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Using colors to generate CSS ...
Info 2021-02-28 17:52:30: Install Missing Dependencies, Class name = g, completed in 574ms, has a falsy return value, Return Value: 0
Info 2021-02-28 17:52:30: Launching kernel daemon for Python 3 # /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:30: Creating daemon pool for /Users/rwk/anaconda3/bin/python with env variables count 100
Info 2021-02-28 17:52:30: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-02-28 17:52:30: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-02-28 17:52:30: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-02-28 17:52:31: No custom variables for Kernel as interpreter is not conda, but is VirtualEnv
Info 2021-02-28 17:52:31: Creating daemon process for /Users/rwk/anaconda3/bin/python with env variables count 100
Info 2021-02-28 17:52:31: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Execute rpc method exec_module in DS Daemon
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Execute rpc method exec_module from /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"29e5f910-ded6-433d-9e0e-872d867b5136"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136lqfZZWyb333X.json']
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"29e5f910-ded6-433d-9e0e-872d867b5136"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136lqfZZWyb333X.json']
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Exec in DS Kernel Launcher Daemon (observable) ['/Users/rwk/anaconda3/bin/python', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"29e5f910-ded6-433d-9e0e-872d867b5136"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136lqfZZWyb333X.json']
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-02-28 17:52:31: Python Daemon (pid: 69657): Kernel launched, with PID 69838
Warn 2021-02-28 17:52:31: Python Daemon (pid: 69657): Waiting for Kernel to die 69838
Info 2021-02-28 17:52:31: Launching kernel daemon, Class name = h, completed in 1372ms, has a truthy return value, Arg 1: <Uri:/Users/rwk/p/lecture-python.notebooks/ifp.ipynb>, Arg 2: "/Users/rwk/p/lecture-python.notebooks", Arg 3: {"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"29e5f910-ded6-433d-9e0e-872d867b5136\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136lqfZZWyb333X.json"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"}, Arg 4: {"architecture":3,"path":"/Users/rwk/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysVersion":"3.7.1 (default, Dec 14 2018, 13:28:58) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/anaconda3","fileHash":"7a2c2a2135d48729ebd9a14e89ddd12ff3929b03596c4e1c6f6ac9f27db10afba6693cb7a588c1b5ac750bdf43e15b81a4fb21e0f6ad8b201d67393d44dc892c","envType":"VirtualEnv","envName":"anaconda3","displayName":"Python 3.7.1 64-bit ('anaconda3': virtualenv)"}, Return Value: <Return value cannot be serialized for logging>
Info 2021-02-28 17:52:31: Launching kernel in kernelProcess.ts, Class name = _, completed in 1372ms, has a truthy return value, Arg 1: "/Users/rwk/p/lecture-python.notebooks", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"/Users/rwk/anaconda3/bin/python","_handle":{"pid":69657},"spawnargs":["/Users/rwk/anaconda3/bin/python","/Users/rwk/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":69657,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Info 2021-02-28 17:52:32: Raw session started and connected
Started kernel Python 3
Info 2021-02-28 17:52:32: Initial setup for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb starting ...
Info 2021-02-28 17:52:32: Initialize config for plots for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:32: Kernel switching to busy
Info 2021-02-28 17:52:32: Kernel switching to idle
Info 2021-02-28 17:52:32: installMissingDependencies /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:32: Initial setup complete for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb
Info 2021-02-28 17:52:32: Finished connecting 5e511fd1-3583-44c6-9015-8c4c7a8a47bc
Info 2021-02-28 17:52:32: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-02-28 17:52:32: Registering commtarget jupyter.widget
Info 2021-02-28 17:52:32: Process Execution: > ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py pip list
> ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py pip list
Info 2021-02-28 17:52:32: Process Execution: > ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-02-28 17:52:32: Install Missing Dependencies, Class name = g, completed in 430ms, has a falsy return value, Return Value: 0
Info 2021-02-28 17:52:32: Launching kernel daemon for Python 3 # /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:33: Creating daemon process for /Users/rwk/anaconda3/bin/python with env variables count 100
Info 2021-02-28 17:52:33: Process Execution: > ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/anaconda3/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-02-28 17:52:33: No custom variables for Kernel as interpreter is not conda, but is VirtualEnv
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Execute rpc method exec_module in DS Daemon
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Execute rpc method exec_module from /Users/rwk/anaconda3/bin/python
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"c1fc16f4-cb04-47bc-98a6-863610040c62"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136m5T3BxUKe577.json']
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"c1fc16f4-cb04-47bc-98a6-863610040c62"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136m5T3BxUKe577.json']
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Exec in DS Kernel Launcher Daemon (observable) ['/Users/rwk/anaconda3/bin/python', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"c1fc16f4-cb04-47bc-98a6-863610040c62"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136m5T3BxUKe577.json']
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-02-28 17:52:33: Python Daemon (pid: 71821): Kernel launched, with PID 71941
Warn 2021-02-28 17:52:33: Python Daemon (pid: 71821): Waiting for Kernel to die 71941
Info 2021-02-28 17:52:33: Launching kernel daemon, Class name = h, completed in 1092ms, has a truthy return value, Arg 1: <Uri:/Users/rwk/p/lecture-python.notebooks/ifp.ipynb>, Arg 2: "/Users/rwk/p/lecture-python.notebooks", Arg 3: {"specFile":"/Users/rwk/anaconda3/share/jupyter/kernels/python3/kernel.json","interpreterPath":"/Users/rwk/anaconda3/bin/python","name":"python3","argv":["/Users/rwk/anaconda3/bin/python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9008","--control=9006","--hb=9005","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"c1fc16f4-cb04-47bc-98a6-863610040c62\"","--shell=9007","--transport=\"tcp\"","--iopub=9009","--f=/var/folders/0x/ymhqtdms3fgc_mdbv1xdv7zw0000gr/T/tmp-67136m5T3BxUKe577.json"],"language":"python","path":"/Users/rwk/anaconda3/bin/python","display_name":"Python 3"}, Arg 4: {"architecture":3,"path":"/Users/rwk/anaconda3/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysVersion":"3.7.1 (default, Dec 14 2018, 13:28:58) \n[Clang 4.0.1 (tags/RELEASE_401/final)]","sysPrefix":"/Users/rwk/anaconda3","fileHash":"7a2c2a2135d48729ebd9a14e89ddd12ff3929b03596c4e1c6f6ac9f27db10afba6693cb7a588c1b5ac750bdf43e15b81a4fb21e0f6ad8b201d67393d44dc892c","envType":"VirtualEnv","envName":"anaconda3","displayName":"Python 3.7.1 64-bit ('anaconda3': virtualenv)"}, Return Value: <Return value cannot be serialized for logging>
Info 2021-02-28 17:52:33: Launching kernel in kernelProcess.ts, Class name = _, completed in 1092ms, has a truthy return value, Arg 1: "/Users/rwk/p/lecture-python.notebooks", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"/Users/rwk/anaconda3/bin/python","_handle":{"pid":71821},"spawnargs":["/Users/rwk/anaconda3/bin/python","/Users/rwk/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":71821,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Info 2021-02-28 17:52:36: Creating daemon process for /Users/rwk/opt/anaconda3/envs/quantecon2/bin/python with env variables count 95
Info 2021-02-28 17:52:36: Process Execution: > ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/opt/anaconda3/envs/quantecon2/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Execute rpc method prewarm_kernel in DS Daemon
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Execute rpc method prewarm_kernel from /Users/rwk/opt/anaconda3/envs/quantecon2/bin/python
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Pre-Warm DS Kernel in DS Kernel Launcher Daemon
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Exec in DS Kernel Launcher Daemon (observable) ['/Users/rwk/opt/anaconda3/envs/quantecon2/bin/python', '/Users/rwk/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/vscode_datascience_helpers/../pyvsc-run-isolated.py', '/Users/rwk/.vscode/extensions/ms-toolsai.jupyter-2021.2.603412351/pythonFiles/vscode_datascience_helpers/kernel_prewarm_starter.py']
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Kernel launched, with PID 73660
Warn 2021-02-28 17:52:36: Python Daemon (pid: 73659): Waiting for Kernel to die 73660
Info 2021-02-28 17:52:36: Python Daemon (pid: 73659): Kernel launched, with PID as a daemon 73660
Info 2021-02-28 17:52:44: Executing cell NotebookImport#6
Info 2021-02-28 17:52:44: Waiting for jupyter server and web panel ...
Info 2021-02-28 17:52:44: Submitting code for 19629c86-5b76-430c-80bc-b61f36a8fd29
Info 2021-02-28 17:52:44: Kernel switching to busy
Info 2021-02-28 17:52:44: Kernel switching to idle
Info 2021-02-28 17:52:44: Preferred kernel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb is undefined
Info 2021-02-28 17:52:44: Kernel switching to busy
Info 2021-02-28 17:52:44: Preferred kernel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb is undefined
Info 2021-02-28 17:52:44: Preferred kernel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb is undefined
Info 2021-02-28 17:52:45: Preferred kernel for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb is undefined
Info 2021-02-28 17:52:45: Finished execution for NotebookImport#6
Info 2021-02-28 17:52:45: Finished executing cell NotebookImport#6
Info 2021-02-28 17:52:45: Kernel switching to idle
Info 2021-02-28 17:52:45: Trusting notebook...
Info 2021-02-28 17:52:45: Wrote trust for file:///Users/rwk/p/lecture-python.notebooks/ifp.ipynb to /Users/rwk/Library/Application Support/Code/User/globalStorage/ms-toolsai.jupyter/nbsignatures/7a95aadf2079e89d5760a3ef5403f05cf34da9965c02e01fbf057adbba40d27b
lucasfijen commented 3 years ago

Thanks for filing this issue, we have seen a few reports related to conda. Please could you revert your Python extension to a version from December, I'd like to check if that fixes it. To install an older version just go to the extensions tab & click the gear icon & select Install Another Version, see here Screen Shot 2021-02-25 at 07 19 59

Finally: Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to debug
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

Thanks

Having the same problem, python interactive only selecting the base kernel. For me downgrading the jupyter extension instead of the python extension fixed the problem, the problem starts from jupyter extension 2021.2.0 for me.

IanMatthewHuff commented 3 years ago

Looks to me like this is actually the same or related to issue #4831 that I filed. Based on the log from @BobKerns when the extension looks for a kernel spec it's just looking for "generic" python 3 kernelspec.

Info 2021-02-28 17:52:27: Searching for kernel based on {"display_name":"Python 3","language":"python","name":"python3"} for /Users/rwk/p/lecture-python.notebooks/ifp.ipynb

Since that's all it has to search for it matches kernels in multiple conda environments. Since the conda envs are detected globally it finds kernel specs in base, napri, quantecon, arduinio, ect... that all match. I think that it might just be picking base as it's finding it first of all the matches.

JunCEEE commented 3 years ago

I can confirm with @lucasfijen, the problem disappeared after downgrading the jupyter extension to 2020.12.

DonJayamanne commented 3 years ago

@JunCEEE We believe we've addressed a number of issues in this area. Right now our development build can be tested with VS Code Insiders. All you need to do in order to test the fixes is install VS Code Insiders and install the latest Jpuyter extesnion.

Please could you try this and let us know whether this has been resolved. Thanks

JunCEEE commented 3 years ago

@DonJayamanne Thanks for your efforts. I just tested the latest Jupyter extension in VS Code Insiders, and the problem is resolved. Thanks again.