-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixed in next version (release)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionnotebooks
Description
Environment data
- Pylance version: [email protected]
- OS and version: Arch, Linux 6.8.12-8-pve
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.12.9
The env is created by conda create -n test python=3.12 numpy pandas matplotlib obspy pygmt scipy -c conda-forge.
Code Snippet
nb1.ipynb, nb11.ipynb, dir1/nb1.ipynb, dir2/nb1.ipynb
import numpy
import matplotlib
import pygmt
import obspy
numpy.random.random(10)Repro Steps
- create a new env with
conda create -n test python=3.12 numpy pandas matplotlib obspy pygmt scipy -c conda-forge. - install extensions and switch
python.analysis.logLeveltoTrace
- reopen VScode and open nb1.ipynb, nb11.ipynb, dir1/nb1.ipynb, dir2/nb1.ipynb
case 1, nb11 Import "numpy" could not be resolved
case 2, dir1/nb1 Import "numpy" could not be resolved
case 3, both nb11 and dir1/nb1 Import "numpy" could not be resolved
Actual behavior
pylance sometimes can't resolve ipynb with same or similar import correctly.
logs
Ark-kun, jmsprt and imadjarov-quantinuum
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixed in next version (release)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionnotebooks



