VSCode creates empty .ipynb_checkpoints - visual-studio-code

I run Jupyter on a remote server via ssh inside VSCode. Everything works fine except that Jupyter does not create any checkpoints. However, it creates empty .ipynb_checkpoints folder.
If I start the browser version of Jupyter Notebook from the VSCode terminal, it saves checkpoints with no problems. I prefer the VSCode extension over regular Jupyter because it enables autocompletion and lots of other features. Still, I feel unsafe about not having an option to revert to a checkpoint.
Any suggestions on what might be wrong and how I could fix it?
VSCode version: 1.63.0
Jupyter Extension version: v2021.11.1001550889
settings.json
"remote.SSH.remotePlatform": {
"remote_server": "linux"
},
"terminal.integrated.inheritEnv": false,
"notebook.lineNumbers": "on",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "material-icon-theme",
"window.autoDetectHighContrast": false,
"workbench.colorTheme": "Visual Studio Light",
"editor.fontSize": 15,
"notebook.output.textLineLimit": 100,
"breadcrumbs.enabled": false,
"checkpoints.addCheckpointOnSave": true,
"checkpoints.askForCheckpointName": false,
"jupyter.generateSVGPlots": true,
"files.autoSave": "onFocusChange"
}
Thank you for the help!

Related

Code formatter 'cannot format' JavaScript file

I am using Macbook and suddenly my Prettier in VSCode didn't work and show a message in the bottom bar like this:
Here is my settings.json file:
"editor.formatOnSave": true,
"workbench.colorTheme": "Material Theme Darker",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 13,
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace"
},
"terminal.integrated.automationShell.osx": "",
"terminal.integrated.shell.osx": "",
"terminal.integrated.fontFamily": "\"Meslo LG M for Powerline\"",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.enableDebugLogs": true
}
Also in the bottom right corner, it shows the check tick for Prettier like that:
Can someone please help me to fix it, I have been trying to uninstall and installed again Prettier or VScode but it still shows the same error message.
I know this can't be your issue because your issue is 10 months old now, but for me the version was updated a few days ago from 9.0.0 to 9.1.0 and it stopped working. I selected "uninstall/install another version" and went back to 9.0.0 and it started working again.

vscode giving me invalid symbol error everywhere

I'm going crazy, VSCode is giving me this error EVERYWHERE (including js files and .gitignore .dockerignore files, even for simple lines such as node_modules in .gitignore)
I need some ideas
my config file
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "One Monokai",
"vsicons.dontShowNewVersionMessage": true,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"prettier.tabWidth": 4,
"editor.tabCompletion": "on",
"prettier.singleQuote": true,
"prettier.printWidth": 80,
"window.zoomLevel": 0,
"editor.acceptSuggestionOnEnter": "off",
"editor.minimap.enabled": false
}
My extensions are pretty standard
prettier
react snippets
docker
sass
eslint
some random themes
editor config
graphql
auto-import
This issue randomly appeared for me today as well.
This process worked to solve it on my system, although I don't know what actually caused the issue.
restart vscode
check for a vscode update
(optional) Restart system
If 1-3 don't work you can try
In the command palette run Extensions: Disable All Installed Extension
These steps worked for me when this issue started popping up after installing macOS 10.15 Catalina.
Reinstall node.js using nvm, e.g. nvm install 10 && nvm use 10 to install and use the latest node.js 10.x version (pick your preferred version)
Reinstall eslint via npm i -g eslint
Restart VS Code

Unable to use iTerm2 in vs code

I tried to use iTerm2 as the external terminal in vs code but somehow it failed. Here is my user settings:
{
"workbench.colorTheme": "Material Theme",
"window.zoomLevel": 0,
"editor.fontSize": 14,
"python.pythonPath": "/ommitted/dl/proj/bin/python3.6",
"workbench.iconTheme": "eq-material-theme-icons",
"terminal.explorerKind": "external",
"terminal.external.osxExec": "/Applications/iTerm.app/Contents/MacOS/iTerm2"
}
The above settings returned the following result:
Which I expected a Python 3.6 from a virtualenv environment, as shown in the setting. Is there anything wrong with my setting? Any help will be appreciated!

VS code PowerShell extension intellisense is very slow

VS Code PowerShell intellisense has suddenly become very slow for me. It was working fine for a few days. I have uninstalled all extensions, except the one for PowerShell.
Here are the details about VS code.
Version: 1.28.2 (user setup)
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:23:51.859Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Here are the user settings for PowerShell:
"powershell.bugReporting.project":
"https://github.com/PowerShell/vscode-powershell",
"powershell.codeFolding.enable": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.preset": "Custom",
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.debugging.createTemporaryIntegratedConsole": false,
"powershell.developer.bundledModulesPath": "",
"powershell.developer.editorServicesLogLevel": "Normal",
"powershell.developer.editorServicesWaitForDebugger": false,
"powershell.developer.featureFlags": [],
"powershell.developer.powerShellExeIsWindowsDevBuild": false,
"powershell.developer.powerShellExePath": "",
"powershell.enableProfileLoading": true, "powershell.helpCompletion":
"BlockComment", "powershell.integratedConsole.focusConsoleOnExecute":
true, "powershell.integratedConsole.showOnStartup": true,
"powershell.powerShellAdditionalExePaths": [],
"powershell.powerShellDefaultVersion": "",
"powershell.powerShellExePath": "",
"powershell.scriptAnalysis.enable": true,
"powershell.scriptAnalysis.settingsPath": "",
"powershell.startAutomatically": true, "powershell.useX86Host": false
Does anyone has suggestions?
Since reinstalling VSCode didn't help, it's probably some issue with powershell.
Few things to consider.
I used to experience some lagging with intellisense/ps loading due to some module folders were located on the network drive. I didn't find any better solution rather than copying all modules locally.
I had big issues with PS after upgrading from v3 to v5 on Win 7. Pretty much it stopped working. Downgrading back didn't help. Surprisingly it worked fine if I logged as different user, so I just deleted and recreated my profile and it helped. Log as different user and see if it work differently.
I use VSCode on my linux machine with powershell core (pwsh), as an ISE alternative. It works good, and I have same version on VSCode as you. Try to install powershell core on your machine and then switch VSCode to use it instead of 5.0
https://learn.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6#using-a-specific-installed-version-of-powershell

Visual Studio Code powershell terminal display is broken

I am using VisualStudioCode with powershell, and the line breaks as shown below.
Do you have any idea why?
VisualStudioCode Version:
My settings file:
{
"editor.fontFamily": "D2Coding",
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.mouseWheelZoom": true,
"window.reopenFolders": "none",
"workbench.colorTheme": "Visual Studio Dark",
"workbench.welcome.enabled": false,
"window.zoomLevel": 0,
"editor.cursorStyle": "line-thin",
"terminal.integrated.shell.windows": "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
}
You should not be using the "SysWOW64" path for your powershell.exe console.
Update your terminal setting to this:
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
If you are running Windows 10 you can remove it all together as VS Code will default to PowerShell as the terminal for Windows.