selfteaching / selfteaching/selfteaching-python-camp

Day13 在VS Code中运行报错

Open
#2,358 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

我将代码在Jupyterlab中运行时,可以正常的运行。但是将代码放在VS Code中运行时,出现了异常。异常的位置是我在“import matplotlib.pyplot as plt”时出现的,异常是ImportError。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Python interpreter and installed packages used by JupyterLab and VS Code, then reproduce the ImportError at import matplotlib.pyplot as plt. The issue is complete when the same code imports matplotlib successfully in VS Code, with the relevant environment difference or setup requirement documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, matplotlib, python, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.