visual-studio-code

Not able to run Azure blob triggered function in portal

Not able to run Azure blob triggered function in portal Question: I’m new in developing with Azure. Currently I’m trying to develop a blob triggered python function which was initially developed using VS Code. When it was tested by running in VS Code, it worked perfectly and got the expected output, however when it was …

Total answers: 1

qt.qpa.xcb: could not connect to display localhost:17.0 DIFFERENT set up

qt.qpa.xcb: could not connect to display localhost:17.0 DIFFERENT set up Question: I run my Python code in VSCode on Windows 10 which ssh to the remote RPi 4. Got this error: qt.qpa.xcb: could not connect to display :1 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/pi/mambaforge/envs/mb/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This …

Total answers: 1

Jupyter Notebook cells not showing in code-server running in a docker

Jupyter Notebook cells not showing in code-server running in a docker Question: I want to use Jupyter notebooks in Code-Server in a docker. For whatever reasons I cant get it running and I also have/found no error messages that could help me finding the cause. Jupyter notebook files (ipynb) can be created and I can …

Total answers: 1

Github Desktop using different Visual Studio Code version from Anaconda

Github Desktop using different Visual Studio Code version from Anaconda Question: I have read over 20 posts of an error running the code in .py file, but I still cannot get it running. I got an error like import requests Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named ‘requests’ …

Total answers: 1

AttributeError: 'cv2.VideoCapture' object has no attribute 'isOpend'

AttributeError: 'cv2.VideoCapture' object has no attribute 'isOpend' Question: I have a problem using OpenCV with VS Code I checked version of OpenCV and Python, but I don’t know what’s wrong. opencv version is 4.7.0 vscode interpreter is python 3.9.13(‘base’) /opt/anaconda3/bin/python here is condalist opencv-contrib-python 4.7.0.72 pypi_0 pypi opencv-python 4.7.0.72 pypi_0 pypi this is my code …

Total answers: 1

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