As the title says, how to find and replace text inside a single jupyter cell when using the jupyter extension in Visual Studio Code? I am familiar with ctr+h but that will replace all the occurrences in the entire jupyter notebook file. This is a really important feature for me, as I am using it a lot in jupyter on
Tag: visual-studio-code
Invoke a lambda from VSCode python
could not find any answer on this. All the tutorials mention how to use AWS toolkit or how to locally develop and test your lambda on VSCode. That’s not what I would like, I already have a lambda, and I would just like to invoke it. To call a s3 or Dynamo DB, I can just run What is the
How to remove this warning from VScode python code?
In my python code, I see the following warning all over the place; How do I remove this warning? I am using VS code v1.64.0, Microsoft Python Extension for Visual Studio Code v2022.0.1786462952. Answer From the hints provided in the comments, I managed to find an answer to my question. Edit settings.json found in .vscode folder. Add in the following;
Visual Studio interactive window unreadable highlighted error
Recently, Visual Studio started highlighting errors in the interactive window, which makes them unreadable: How can I remove or change the highlight color? I looked around SO but can’t find any of the settings mentioned (e.g. this). I am using the standard VS dark theme. Other dark themes didn’t solve the issue Answer Following rioV8’s instructions, I added the following
vscode returning “Timed out waiting for launcher to connect” error, python runs perfectly in other text editors and in terminal
I got this error in VSCode, saying that it timed out waiting for the launcher to connect. I’ve tested it and Python works perfectly fine in command prompt and in other text editors. This is what it says: VSCode error This is what my launch.json file is: I don’t know what is wrong or how to fix it. It was
VSCode not recognizing python import and functions
Can someone let me know what the squiggly lines represent in the image? The actual error the flags up when I hover my mouse over the squiggly line is: Import “pyspark.sql.functions” could not be resolvedPylance I’m not sure what that means, but I’m getting the error for almost all functions in VSCode. Can someone let me know how to resolve
VSCode Python: execute statement during debug
Is it possible to execute statements while the debug mode is active, possibly in the interactive mode? Let’s say I’m working with a dataframe, and it doesn’t behave as I want. I go line by line in debug mode, and I want to check some properties while doing that, for example the number of NaN values. Using the variable window
How to fix Jupyter extension activation failed when opening python files?
I installed python lately on my macos system and when I try to open a python file I see this error popup about Jupyter extension : Answer Just ran into this today (I’m on MacOS for my work computer). In my case, upgrading to the pre-release version of the Jupyter extension (v2022.5.1001281006) solved it right away. If you’re not an
How to fix pylance syntax highlighting showing wrong color for self and cls python class parameters in VSCode with enabled default theme
I have encountered this issue when I use Pylance and syntax highlighting is enabled for python in the VSCode with default or the visual studio theme. self and cls parameter are LightSkyBlue color like other parameters It should be like this: Answer Added the color code inside of the settings.json file for the default dark theme. These two issues on
VSCode does not recognize venv
When I create a new project and the virtual environment using the venv python package, VSCode doesn’t recognize the new virtual environment. I follow the bellow instruction: https://code.visualstudio.com/docs/python/environments The command that I use in the VSCode integrated terminal is: python -m venv .venv The terminal that I use is PowerShell 7, But I tried the CMD terminal too. After running