Repository: vscode
Issue: Jupyter Notebook (VS Code) warning about "bogus" screen size.
Labels: under-discussion,notebook

Type: <b>Bug</b>

When running a Jupyter notebook in VS Code with PySpark and Spark, a warning message is output `your 131072x1 screen size is bogus. expect trouble`.

This only happens after instantiating a SparkSession() object. I am using VS Code in Windows to connect to WSL2 which is running Spark and my Anaconda environments.

Thank you!

VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) W-11855M CPU @ 3.20GHz (12 x 3187)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|63.20GB (33.06GB free)|
|Process Argv|--crash-reporter-id a73ce77d-1afb-462f-b35b-59801fbb5b84|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.102.1-microsoft-standard-WSL2|
|CPUs|Intel(R) Xeon(R) W-11855M CPU @ 3.20GHz (12 x 3187)|
|Memory (System)|49.58GB (42.72GB free)|
|VM|0%|
</details><details><summary>Extensions (103)</summary>

Extension|Author (truncated)|Version
---|---|---
project-manager|ale|12.7.0
vscode-eclipse-keybindings|alp|0.16.1
vscode-icontheme-nomo-dark|be5|1.3.6
color-info|bie|0.7.2
vscode-springboot-snippets|dev|1.2.0
es7-react-js-snippets|dsz|4.4.3
pythonsnippets|frh|1.0.2
codespaces|Git|1.14.3
output-colorizer|IBM|0.1.2
vscode-react-typescript|inf|1.3.1
java-properties|ith|0.0.2
Sbt|itr|0.1.7
better-cpp-syntax|jef|1.17.2
vscode-peacock|joh|4.2.2
intellij-idea-keybindings|k--|1.5.8
vsc-python-indent|Kev|1.18.0
dotenv|mik|1.0.1
jupyter-keymap|ms-|1.1.0
vscode-ai-remote|ms-|0.28.0
remote-containers|ms-|0.288.0
remote-ssh|ms-|0.98.0
remote-ssh-edit|ms-|0.84.0
remote-wsl|ms-|0.77.0
vscode-remote-extensionpack|ms-|0.24.0
remote-explorer|ms-|0.2.0
remote-server|ms-|1.0.0
sublime-keybindings|ms-|4.0.10
material-icon-theme|PKi|4.25.0
scala|sca|0.5.6
code-settings-sync|Sha|3.4.3
python-extended-snippets|tus|0.0.1
vscode-icons|vsc|12.2.0
gistfs|vsl|0.4.1
jinja|who|0.0.8
java-snippet|Wsc|0.0.6
JavaScriptSnippets|xab|1.8.0
node-essentials|afr|1.1.0
project-manager|ale|12.7.0
aws-toolkit-vscode|ama|1.67.0
jsoncrack-vscode|Ayk|1.0.8
vscode-icontheme-nomo-dark|be5|1.3.6
shell-syntax|bma|1.0.5
npm-intellisense|chr|1.4.4
path-intellisense|chr|2.8.4
gitignore|cod|0.9.0
vscode-eslint|dba|2.4.0
maven-dependency-explorer|dhr|1.0.13
git-extension-pack|don|0.1.3
githistory|don|0.6.20
gitlens|eam|13.4.0
EditorConfig|Edi|0.16.4
vscode-npm-script|eg2|0.3.29
code-runner|for|0.12.0
shell-format|fox|7.2.5
codespaces|Git|1.14.3
vscode-pull-request-github|Git|0.62.0
terraform|has|2.25.4
vscode-edit-csv|jan|0.7.4
search-node-modules|jas|1.3.0
language-julia|jul|1.38.2
dotenv|mik|1.0.1
file-downloader|min|1.0.12
mindaro|min|2.0.120230327
vscode-docker|ms-|1.24.0
vscode-kubernetes-tools|ms-|1.3.11
data-workspace-vscode|ms-|0.4.0
mssql|ms-|1.18.0
sql-bindings-vscode|ms-|0.3.0
sql-database-projects-vscode|ms-|0.21.0
isort|ms-|2022.8.0
python|ms-|2023.6.0
vscode-pylance|ms-|2023.3.40
jupyter|ms-|2023.3.1000892223
jupyter-keymap|ms-|1.1.0
jupyter-renderers|ms-|1.0.15
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
vscode-typescript-tslint-plugin|ms-|1.3.4
vsliveshare|ms-|1.0.5834
vscode-jest|Ort|5.2.3
scala-gurus|rav|1.0.0
fabric8-analytics|red|0.3.6
java|red|1.16.0
vscode-xml|red|0.24.0
vscode-yaml|red|1.12.2
scala|sca|0.5.6
scala-snippets|sca|0.1.0
metals|sca|1.22.0
vscode-qt-for-python|sea|7.2.2
trelent|Tre|1.8.5
trinity|Tri|0.2.0
sort-lines|Tyr|1.9.1
intellicode-api-usage-examples|Vis|0.2.7
vscodeintellicode|Vis|1.2.30
vscode-java-debug|vsc|0.49.1
vscode-java-dependency|vsc|0.21.2
vscode-java-pack|vsc|0.25.10
vscode-java-test|vsc|0.38.2
vscode-maven|vsc|0.41.0
nodejs-extension-pack|wad|0.1.9
quokka-vscode|Wal|1.0.530
vscode-import-cost|wix|3.3.0
JavaScriptSnippets|xab|1.8.0

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1:30587005
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30672706
vsctsb:30677850
pythonb192:30669360
functionswalk:30687959
pythonms35:30701012

```

</details>

<!-- generated by issue reporter -->