Skip to content

[FAQ] I am using GitHub Codespaces and added a Python package, but imports fail in my Jupyter notebook? #321

Description

@kevmo

Course

llm-zoomcamp

Question

I am using GitHub Codespaces and added a Python package, but imports fail in my Jupyter notebook?

Image

Answer

Run uv pip list in the terminal to make sure you have actually installed the package.

If the package is there, you are likely running your Jupyter notebook in the wrong virtual environment/workspace/kernel.

On GitHub Codespaces, you can change change the kernel near the top of the screen (generally the environment you want is the name of your repository).

Image

Checklist

  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions