Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize Imports command not available in notebook cells #1686

Closed
TheCleric opened this issue Sep 12, 2020 · 3 comments
Closed

Organize Imports command not available in notebook cells #1686

TheCleric opened this issue Sep 12, 2020 · 3 comments
Labels
notebook-intellisense Intellisense & other language features in notebook cells for any language

Comments

@TheCleric
Copy link

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Open an existing or create a new Jupyter Notebook
  2. Add a cell with some imports such as:
import os
import abc
  1. Open the VS Code Command Palette
  2. Type in "Organize Imports"

Actual behavior

"Organize Imports" command is missing.

Expected behavior

"Organize Imports" command is present, and selecting it organizes the imports in the selected cell.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2020.8.108011
  • VS Code version: 1.49
  • Setting python.jediEnabled: True
  • Setting python.languageServer: Jedi
  • Python and/or Anaconda version: 3.8.5
  • OS: Windows
  • Virtual environment: venv

Python Output

Info 2020-09-12 16:29:47: Cached data exists getEnvironmentVariables, e:\Users\username\Development\projectname
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: Loading web panel for file:///e%3A/Users/username/Development/projectname/test.ipynb
Info 2020-09-12 16:29:47: Loading web panel. Panel is notset
Info 2020-09-12 16:29:47: Attempting to start a server because of preload conditions ...
Info 2020-09-12 16:29:47: Loading web view...
Info 2020-09-12 16:29:47: Web view created.
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 2ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","companyDisplayName":"Python Software Foundation","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 2ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: [{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 3ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"},{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"},{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters, Class name = g, completed in 6ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: {"onSuggestion":true}, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","companyDisplayName":"Python Software Foundation","type":"Unknown"},{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv"}]
Info 2020-09-12 16:29:47: Cached data exists getEnvironmentVariables, <No Resource>
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","companyDisplayName":"Python Software Foundation","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: []
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: [{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters in CacheableLocatorService, Class name = f, completed in 4ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"},{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","type":"Unknown"},{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","type":"Unknown"}]
Info 2020-09-12 16:29:47: Get Interpreters, Class name = g, completed in 7ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: [{"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","companyDisplayName":"Python Software Foundation","type":"Unknown"},{"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv"}]
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: getActivatedEnvironmentVariables, Class name = E, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"C:\\Python38\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"C:\\Python38","fileHash":"2682b69642e78deff8332d5428935ad3e70de7354438856fac3d0c4ee08ffc9d9522ce4e1958acb604ce755d314285e84ea393b6476fb79a48c3aba6f3e12876","companyDisplayName":"Python Software Foundation","type":"Unknown","displayName":"Python 3.8.5 64-bit"}, Arg 3: true
Info 2020-09-12 16:29:47: Cached data exists getEnvironmentVariables, <No Resource>
Info 2020-09-12 16:29:47: Using current interpreter for kernel python3, Python 3
Info 2020-09-12 16:29:47: Cached data exists getEnvironmentVariables, e:\Users\username\Development\projectname\test.ipynb
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:47: Python Daemon (pid: 13324): Execute rpc method start_prewarmed_kernel in DS Daemon
Info 2020-09-12 16:29:47: Python Daemon (pid: 13324): Execute rpc method start_prewarmed_kernel from e:\Users\username\Development\projectname\venv\Scripts\python.exe
Info 2020-09-12 16:29:47: Python Daemon (pid: 13324): Start pre-warmed Kernel in DS Kernel Launcher Daemon 2504 with args ['ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9043', '--control=9041', '--hb=9040', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"411b5e4b-5d72-4a00-8b9e-31524a21a08d"', '--shell=9042', '--transport="tcp"', '--iopub=9044', '--f=E:\\Users\\username\\AppData\\Local\\Temp\\tmp-14432dfMhh4hhIOux.json']
Info 2020-09-12 16:29:48: getActivatedEnvironmentVariables, Class name = E, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv","displayName":"Python 3.8.5 64-bit ('venv': venv)"}, Arg 3: true
Info 2020-09-12 16:29:48: > e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2020-09-12 16:29:48: Raw session started and connected
Info 2020-09-12 16:29:48: Initialize config for plots for file:///e%3A/Users/username/Development/projectname/test.ipynb
Info 2020-09-12 16:29:48: Kernel switching to busy
Info 2020-09-12 16:29:48: Kernel switching to idle
Info 2020-09-12 16:29:48: Initial setup complete for file:///e%3A/Users/username/Development/projectname/test.ipynb
Info 2020-09-12 16:29:48: Finished connecting 059fb4a4-4258-48bf-8afa-59a6fab2f420
Info 2020-09-12 16:29:48: Registering commtarget jupyter.widget
Info 2020-09-12 16:29:48: getActivatedEnvironmentVariables, Class name = E, completed in 0ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: {"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv","displayName":"Python 3.8.5 64-bit ('venv': venv)"}, Arg 3: true
Info 2020-09-12 16:29:48: getActivatedEnvironmentVariables, Class name = E, completed in 1ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: {"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv","displayName":"Python 3.8.5 64-bit ('venv': venv)"}, Arg 3: true
Info 2020-09-12 16:29:48: > e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Execute rpc method exec_module in DS Daemon
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Execute rpc method exec_module from e:\Users\username\Development\projectname\venv\Scripts\python.exe
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9048', '--control=9046', '--hb=9045', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"0d4f3858-3f87-47f2-ac07-e8cbf5b04f3d"', '--shell=9047', '--transport="tcp"', '--iopub=9049', '--f=E:\\Users\\username\\AppData\\Local\\Temp\\tmp-14432i19KqjhKZsOU.json']
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9048', '--control=9046', '--hb=9045', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"0d4f3858-3f87-47f2-ac07-e8cbf5b04f3d"', '--shell=9047', '--transport="tcp"', '--iopub=9049', '--f=E:\\Users\\username\\AppData\\Local\\Temp\\tmp-14432i19KqjhKZsOU.json']
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Exec in DS Kernel Launcher Daemon (observable) ['e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9048', '--control=9046', '--hb=9045', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"0d4f3858-3f87-47f2-ac07-e8cbf5b04f3d"', '--shell=9047', '--transport="tcp"', '--iopub=9049', '--f=E:\\Users\\username\\AppData\\Local\\Temp\\tmp-14432i19KqjhKZsOU.json']
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Exec in DS Kernel Launcher Daemon (observable)
Info 2020-09-12 16:29:48: Python Daemon (pid: 6804): Kernel launched, with PID 6352
Warn 2020-09-12 16:29:48: Python Daemon (pid: 6804): Waiting for Kernel to die 6352
Info 2020-09-12 16:29:49: getActivatedEnvironmentVariables, Class name = E, completed in 0ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: {"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv","displayName":"Python 3.8.5 64-bit ('venv': venv)"}, Arg 3: true
Info 2020-09-12 16:29:49: getActivatedEnvironmentVariables, Class name = E, completed in 1ms, has a truthy return value, Arg 1: <Uri:e:\Users\username\Development\projectname\test.ipynb>, Arg 2: {"architecture":3,"path":"e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"e:\\Users\\username\\Development\\projectname\\venv","fileHash":"75da4dcc48e9f8e00aad3568c9a015140a2c4a3256d9af16efa1bbedc38f39bbba93725815ac6e54376d16af9303d4cfbbbdb10b24e858c07409b6854eee2cf1","envName":"venv","type":"Venv","displayName":"Python 3.8.5 64-bit ('venv': venv)"}, Arg 3: true
Info 2020-09-12 16:29:49: > e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> e:\Users\username\Development\projectname\venv\Scripts\python.exe c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2020-09-12 16:29:49: Web view react rendered
Info 2020-09-12 16:29:49: Searching for token colors ...
Info 2020-09-12 16:29:49: Attempting search for colors ...
Info 2020-09-12 16:29:49: Searching for token colors ...
Info 2020-09-12 16:29:49: Attempting search for colors ...
Info 2020-09-12 16:29:49: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:49: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:49: Request for onigasm file at c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\out\client\node_modules\onigasm\lib\onigasm.wasm
Info 2020-09-12 16:29:49: Request for tmlanguage file.
Info 2020-09-12 16:29:49: Searching for token colors ...
Info 2020-09-12 16:29:49: Attempting search for colors ...
Info 2020-09-12 16:29:49: Searching for token colors ...
Info 2020-09-12 16:29:49: Attempting search for colors ...
Info 2020-09-12 16:29:49: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:49: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Searching for token colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Searching for token colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Searching for token colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Searching for token colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Attempting search for colors ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Loading base colors from c:\Program Files\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Execute rpc method prewarm_kernel in DS Daemon
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Execute rpc method prewarm_kernel from e:\Users\username\Development\projectname\venv\Scripts\python.exe
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Pre-Warm DS Kernel in DS Kernel Launcher Daemon
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Exec in DS Kernel Launcher Daemon (observable) ['e:\\Users\\username\\Development\\projectname\\venv\\Scripts\\python.exe', 'c:\\Users\\username\\.vscode\\extensions\\ms-python.python-2020.8.108011\\pythonFiles\\vscode_datascience_helpers\\..\\pyvsc-run-isolated.py', 'c:\\Users\\username\\.vscode\\extensions\\ms-python.python-2020.8.108011\\pythonFiles\\vscode_datascience_helpers\\kernel_prewarm_starter.py']
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Exec in DS Kernel Launcher Daemon (observable)
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Kernel launched, with PID 10424
Warn 2020-09-12 16:29:50: Python Daemon (pid: 14484): Waiting for Kernel to die 10424
Info 2020-09-12 16:29:50: Python Daemon (pid: 14484): Kernel launched, with PID as a daemon 10424
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:50: Using colors to generate CSS ...
Info 2020-09-12 16:29:56: Cached data exists getEnvironmentVariables, extension-output-#11
Info 2020-09-12 16:29:56: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Info 2020-09-12 16:29:56: > e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> e:\Users\username\Development\projectname\venv\Scripts\python c:\Users\username\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
@joyceerhl
Copy link
Contributor

Thanks for opening an issue @TheCleric. We're tracking adding this functionality as part of reimplementing our notebook editor experience to use VS Code's new native notebooks API. Please track https://github.com/microsoft/vscode-python/issues/12189 for when this will be implemented.

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@greazer greazer added the notebook-intellisense Intellisense & other language features in notebook cells for any language label Aug 5, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Aug 30, 2021

Seems this wasn't implemented as part of the new notebook UI. Or at least it doesn't work.

@rchiodo
Copy link
Contributor

rchiodo commented Oct 27, 2021

This should be a dupe of #5705. At least once we have 'Add import' working, organize imports should as well.

@rchiodo rchiodo closed this as completed Oct 27, 2021
@rchiodo rchiodo removed this from the October 2021 milestone Oct 27, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
notebook-intellisense Intellisense & other language features in notebook cells for any language
Projects
None yet
Development

No branches or pull requests

5 participants