aws / aws/studio-lab-examples

Python interpreter not the same in notebook and in terminal

Open
#218 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
772
Forks
229
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/aws/studio-lab-examples/assets/8778305/72d19dc6-35d1-4a90-a794-ed9bf6e3b5f3)

![image](https://github.com/aws/studio-lab-examples/assets/8778305/8a7aa499-c6a8-4e62-8633-985613b541c3)

**Desktop (please complete the following information):**
- OS: [win11]
- Browser [edge]
- Version [latest]

**Additional context**
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.