studio-lab-examples icon indicating copy to clipboard operation
studio-lab-examples copied to clipboard

Python interpreter not the same in notebook and in terminal

Open wenh06 opened this issue 2 years ago • 6 comments

Describe the bug

The Python interpreter is not the same in the notebook and in the terminal.

In the notebook, it is /home/studio-lab-user/.conda/envs/default/bin/python, while in the terminal, it is /home/studio-lab-user/.conda/envs/studiolab/bin/python.

To Reproduce Steps to reproduce the behavior:

  1. type !which python and run in a cell in some notebook
  2. type which python and hit enter in a terminal

Expected behavior The Python interpreter in the notebook and in the terminal should coincide. Otherwise, one has to install a package inside a notebook and also in the terminal.

Screenshots

image

image

Desktop (please complete the following information):

  • OS: [win11]
  • Browser [edge]
  • Version [latest]

Additional context N/A

wenh06 avatar May 25 '23 03:05 wenh06

Dear @wenh06 , thank you for letting us know the issue. We have already recognized this issue and dealing with it.

https://github.com/aws/studio-lab-examples/issues/212

icoxfog417 avatar May 25 '23 04:05 icoxfog417

The work around is in https://github.com/aws/studio-lab-examples/issues/212

MicheleMonclova avatar Jun 01 '23 20:06 MicheleMonclova

sorry , there is no work around in https://github.com/aws/studio-lab-examples/issues/212

Sandy4321 avatar Jul 18 '23 16:07 Sandy4321

Dear @Sandy4321 Here is the work around. https://github.com/aws/studio-lab-examples/issues/212#issuecomment-1518458661

icoxfog417 avatar Jul 24 '23 12:07 icoxfog417