nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.93k stars 333 forks source link

Hydrogen package unable to import Pandas showing ModuleNotFoundError #2124

Open kumarshivam89 opened 3 years ago

kumarshivam89 commented 3 years ago

I have been using Atom for the last couple of months on my Linux machine (UBUNTU 20.04). I installed the Hydrogen package and it was working fine until today. Earlier, I was able to import Pandas and display DataFrames inside the editor.. which was so cool. But, today something happened :-( and now, I am not able to import Pandas.

I checked... that the Atom is running in the correct conda environment (in my case mlenv) and .... the mlenv has Pandas installed...

following is the screenshot of some code that I ran in the Atom editor... you can see that everything is working as expected, except the import statement... Any help is really, really appreciated !!... Thanks .....

atom_details

hydrogen_import_error

hydrogen_import_error_consol

full_consol

aminya commented 3 years ago

Have you seen this solution? https://github.com/nteract/hydrogen/issues/1893#issuecomment-800654897

or this one? https://github.com/nteract/hydrogen/issues/2092#issuecomment-821960482

kumarshivam89 commented 3 years ago

Have you seen this solution? #1893 (comment)

or this one? #2092 (comment)

I tried doing what was suggested in #1893 and #2029.... still the same issue persists...

aminya commented 3 years ago

Try installing pandas globally using pip:

sudo pip install pandas
kumarshivam89 commented 3 years ago

Try installing pandas globally using pip:

sudo pip install pandas

No, I don't want to do that... because then, I have to install all the packages globally... and in that case, I will run into a compatibility issue... it will defy the purpose of having virtual environments...

aminya commented 3 years ago

See this issue:

899

kumarshivam89 commented 3 years ago

See this issue:

899

I tried this.. It did something and now..when I do shift+enter to run the block of code a dropdown appears and shows a list... I can see one of my conda env names (not all !!).. what is this dropdown... if this is a list of env recognizable to atom then why there is some item in the list that doesn't appear in conda env list.... Please help...

dropdown