์ฃผํผํฐ ๋ ธํธ๋ถ์์, ํ์ ํ์ด์ ๊ณผ vscode์์ ์คํํ๋ ipynb ํํ์ ํ์ผ์ ์ด๋ ค๊ณ ํ๋๊น ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค
The error was: SyntaxError: Unexpected end of JSON input
Cannot upload invalid Notebook
๊ทธ๋ฌ๋ฉด
์ด๋ฌํ ๊ฒฝ์ฐ์๋ vscode ์์ build : ctrl + shift + b ๋ก ๋ค์ด๊ฐ์ ์ค์ ์ ๋ณ๊ฒฝํด์ค์ผํ๋ค.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Python Run",
"type": "shell",
"command": "python",
"args": [
"${file}"
],
"options": {
"env": {
"PYTHONIOENCODING": "UTF-8"
}
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
์ด๋ ๊ฒ ํ๋ฉด ๋จ์ ์ด ์กด์ฌํ๋ค.
๋ฐ๋ก ํฐ๋ฏธ๋์ฐฝ์ ๋ณผ ์ ์๋ค๋ ๊ฒ์ด๋ค.
๋ณด์๋ฉด, ํ๋จ์ ํฐ๋ฏธ๋ ์ฐฝ์ด ์กด์ฌํ์ง ์๋ ๊ฒ์ ํ์ธํ ์ ์๋ค.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
// ์ฃผํผํฐ ๋
ธํธ๋ถ์์ json ํ์ผ ๊ด๋ จ ์๋ฌ๊ฐ ๋จ๋ ๊ฒฝ์ฐ
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "echo Hello"
}
]
}
๋ฐ๋ผ์, ํ์ผ์ ์ฃผํผํฐํํ๋ก ๋ณด๋ด์ค๋์๋ง ์ ๊น ์ค์ ์ ๋ฐ๊ฟ๋ ์ฌ์ฉํ๋ฉด ๋ ๊ฒ ๊ฐ๋ค.
๋ค์ ์คํํด๋ณด๋, ํฐ๋ฏธ๋ ๊ฐ์ ๊ฒฝ์ฐ ๋ด๊ฐ ๋ฐ๋ก ์ค์ ํด์ ํฌ ์๊ฐ ์์ด์ ํฐ ๋ฌธ์ ๋ ์๋ ๊ฒ ๊ฐ๋ค.
๋๋ ์ค๋๋ ์ธ์์ ๋ค์ํ ์๋ฌ์ ์ธ์ฐ๊ณ ์๋ค.
'๐๏ธ์ํํธ์จ์ด > ๐ปpython' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] Commit (0) | 2021.11.26 |
---|---|
[python] os ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฒฝ๋ก ์ค์ - os.getcwd(), path (0) | 2021.11.26 |
ํฌ๋กค๋ง ์ ๋ ๋ ๊ธฐ๋ฅ๋ค - ํฌ๋กค๋ฌ ๊ธฐ๋ณธ ์ฌ์ฉ๋ฒ (0) | 2021.11.26 |
Only the following pseudo-classes are implemented: nth-of-type. ์๋ฌ(error) (0) | 2021.11.25 |
์ ํ๋ธ ์ฌ์ดํธ ํฌ๋กค๋ง(๋งํฌ, href) (0) | 2021.11.25 |