# VSCode and Jupyter: TypeError: Cannot read property 'charAt' of undefined

**URL:** <https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315>\
**Category:** VS Code\
**Created:** [March 31, 2021, 4:59pm UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315 "2021-03-31T16:59:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AAlshammaa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aalshammaa/32/23499_2.png) [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Post date:** [March 31, 2021, 4:59pm UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/1 "2021-03-31T16:59:19Z")

</div>

I used to use Jupyter Notebooks for Python. I was excited to hear that Jupyter extension supports Julia.

However I cannot create more than one code cell, and I get this message. Has anyone run into that? Is there a work around?  
Thanks all!

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/f/cfcb2f4d19cfa053b50201370b6ad499aee7d0d8.png)

---

<div class="post-metadata">

**Author:** ![jlperla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlperla/32/34332_2.png) [@jlperla](https://discourse.julialang.org/u/jlperla)\
**Post date:** [April 1, 2021, 12:40am UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/2 "2021-04-01T00:40:51Z")

</div>

Hmm. Maybe post an issue on the vscode jupyter extension repo?

---

<div class="post-metadata">

**Author:** ![Andrea\_Pagnani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrea_pagnani/32/3136_2.png) [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Post date:** [April 1, 2021, 6:57am UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/3 "2021-04-01T06:57:35Z")

</div>

Experiencing the same problem … I’ll report later on the vscode jupyter extension repo

---

<div class="post-metadata">

**Author:** ![vnikoofard](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vnikoofard](https://discourse.julialang.org/u/vnikoofard)\
**Post date:** [April 3, 2021, 5:10pm UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/4 "2021-04-03T17:10:35Z")

</div>

Hi,

Any update on this issue?

---

<div class="post-metadata">

**Author:** ![AAlshammaa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aalshammaa/32/23499_2.png) [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Post date:** [April 3, 2021, 7:36pm UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/5 "2021-04-03T19:36:59Z")

</div>

I found a fix to this problem. Apparently it is a known issue with many languages using jupyter notebooks. I had to install VSCode Insiders for things to work properly. Not sure why the regular VSCode was not updated with fix.

---

<div class="post-metadata">

**Author:** ![thiagoburghi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thiagoburghi/32/26857_2.png) [@thiagoburghi](https://discourse.julialang.org/u/thiagoburghi)\
**Post date:** [July 6, 2021, 10:15am UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/6 "2021-07-06T10:15:34Z")

</div>

Indeed it seems to be an issue with VSCode. In any case, opening and closing the file removes the error and displays the cells you previously tried to create. It is a bit annoying to have to do that, hopefully they will fix that soon.

---

<div class="post-metadata">

**Author:** ![trilobit](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@trilobit](https://discourse.julialang.org/u/trilobit)\
**Post date:** [July 12, 2021, 5:31am UTC](https://discourse.julialang.org/t/vscode-and-jupyter-typeerror-cannot-read-property-charat-of-undefined/58315/7 "2021-07-12T05:31:13Z")

</div>

Same error here, until I installed “IJulia and Interact”  
Now Julia-Notebooks are running correct in VSC.  
Hope it helps.
