visual-studio-code

Visual Studio Code: FileNotFoundError. Execute in File Dir broken, and unable to access file's absolute path

Visual Studio Code: FileNotFoundError. Execute in File Dir broken, and unable to access file's absolute path Question: I am trying to open a CSV file without using its absolute path, but I cannot access it because my files are located in /Users/foo/Machine Learning/Multiple Linear Regression/, which is a child of my working directory /Users/foo/Machine Learning/Machine …

Total answers: 1

Running all cells again adding new rows instead of return new dataframe

Running all cells again adding new rows instead of return new dataframe Question: I am creating a class just like lazypredict library but with k fold support and return a data frame withh the mean score of every model every thing works and I can print dataframe but when I run again it add more …

Total answers: 1

Impossible to import model_utils module in Django models.py

Impossible to import model_utils module in Django models.py Question: I follow the official documentation of the django-model-utils model and I’ve just done pip install django-model-utils in my virtual environment. However, VSCode indicates that Import "model_utils.managers" could not be resolved as shown below. VSCode error display With pip list I’ve checked that the module is effectively …

Total answers: 1

vscode extensions need to re-install when I connect next time

vscode extensions need to re-install when I connect next time Question: When I use vscode Remote-SSH, I install some extensions in SSH server. But when I connect ssh several days later, the extensions have disappeared which means I have to install again. vscode-extensions like these: Python Pylance Asked By: luhao || Source Answers: As far …

Total answers: 1

why it says I don't have admin privilage to install chatterbot?

why it says I don't have admin privilage to install chatterbot? Question: I tried to install chatterbot on my up to date python, pip didn’t work, everything including running as administrator and every other thing that I don’t remember. so I went to here: C:UsersaliAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0 with CMD, and did a git clone thing and a …

Total answers: 1

launch.json breaks debugging in VSCode

launch.json breaks debugging in VSCode Question: I wanted to set justMyCode to false for a python project in VSCode. So I created a launch.json file in a .vscode folder under the project root folder with the following content: { "configurations": [ { "name": "Python: Current File", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal", // …

Total answers: 1

ModuleNotFoundError while using GitHub codespace editor

ModuleNotFoundError while using GitHub codespace editor Question: Recently I started using GitHub codespace for the first time. I created a new codespace from one of my repositories. Assuming the folder structure as below: my-codespace |— utils |—— my_script.py |— config.py I get the following error when I import config.py inside my_script.py: ModuleNotFoundError: No module named …

Total answers: 2