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

Issues with VSCode and Python Kernel version for datascience library due to MS Python extension #92511

Closed
leestott opened this issue Mar 11, 2020 · 3 comments
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@leestott
Copy link

leestott commented Mar 11, 2020

Hi I have come across some issues with the running VS Online and Jupyter Python

Code version 1.43.0
code version

I have a custom docker image which gets deployed as VS Online or can be used within VS Code if you installed the associated libraries. see https://github.com/leestott/MSLearn-DataScience you can use this for repo if required

The specific Library I have noticed a issue with is the datascience Library from UC Berkeley https://pypi.org/project/datascience/

Specific issues are around the use of the datascience library

I'm seeing is a issues with the MS python vs code extension where it seems to be getting in the way of the Jupyter Python Kernel.. so you get errors like this.. I am getting the same error in VS Code and VS Online see https://github.com/MicrosoftDocs/vsonline/issues/342

datascienceerror

ImportError: cannot import name 'Table' from 'datascience' (c:\Users\leestott.vscode\extensions\ms-python.python-2020.2.64397\pythonFiles\datascience_init_.py) See how its using ms-python>

I am running 3.7.4 within Code as defined by the docker image.

I am getting the same error in both VS Code and VS Online so this seems to make me think it is related to the MS-Python Extension. running the same code in Azure Notebooks works perfectly see https://mslearndatascience-leestottmicrosoft.notebooks.azure.com/j/notebooks/labs/scratchpad/scratchpad.ipynb

I have confirmed that the libraries have been installed within my VS Code and VS online with python -c datascience from the terminal and inline !pip install which confirms the libraries are there.

@DonJayamanne
Copy link
Contributor

We Python Extension could rename the folder from pythoFiles/datascience to pythonfiles/pvsc_datascience` or similar.
Ensure the name is specific to the python extension or similar (to avoid conflicts with similar/generic names).

@leestott
Copy link
Author

Thanks. For the confirmation

@vscodebot
Copy link

vscodebot bot commented Mar 12, 2020

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Mar 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants