Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't type in code cell after editing Notebook text cell #17579

Closed
dullroar opened this issue Nov 3, 2021 · 19 comments · Fixed by #17590
Closed

Can't type in code cell after editing Notebook text cell #17579

dullroar opened this issue Nov 3, 2021 · 19 comments · Fixed by #17590

Comments

@dullroar
Copy link

dullroar commented Nov 3, 2021

We have written the needed data into your clipboard because it
Issue Type: Performance Issue

The performance upgrade appears to have moved all the rendering to a background thread, which gives the illusion of UI interaction but few things work until CPU goes back to 0 on a complicated notebook. The new shortcut keys for the Markdown cells also seems to be causing a lot of issues elsewhere. I cannot type in pre-existing code cells in a notebook but have to copy the code out, edit it elsewhere and then paste it back in, and the Ctrl-C/Ctrl-V shortcut keys don't even work for paste.

Azure Data Studio version: azuredatastudio 1.33.0 (6783aa6, 2021-10-26T17:28:15.782Z)
OS version: Windows_NT x64 10.0.17763
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz (8 x 2095)
GPU Status 2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) undefined
Memory (System) 20.00GB (5.27GB free)
Process Argv
Screen Reader no
VM 100%
was too large to send. Please paste.
@kburtram kburtram added the Bug label Nov 3, 2021
@kburtram kburtram changed the title Since latest update lots of performance problems Since latest update lots of performance problems editing complicated notebooks Nov 3, 2021
@lucyzhang929
Copy link
Contributor

Hi @dullroar, thank you for filing an issue. Couple of clarifying questions:

  1. Would you be able to share the notebook where you encountered this issue: "I cannot type in pre-existing code cells in a notebook"?
  2. Is this happening with every pre-exisiting notebook that you open?
  3. Just to confirm, are you referring to the Incremental Grid Rendering feature when you say performance upgrade? And are you seeing the issues when the feature is turned on?

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

Lucy:

  1. This is internal notebooks documenting data quality issues in our CRM system so sadly, no. I will say where I see it most is in fairly large notebooks, but there is nothing fancy going on. A text cell stating "This is an attribute on a CRM entity, following are one or two queries showing data issues," and then the code cell(s) and result(s). All results are grids, not charts. None of the result sets are overly large, it is just there are quite a few cells and cell types in each notebook. The most problematic .ipynb file with results in it is 3MB.
  2. Yes, although at "some point" when editing a new notebook, past a certain x of complexity (size? cell count? don't know), will start slowing down, too.
  3. I am referring to the release that just came out, azuredatastudio 1.33.0 (6783aa6, 2021-10-26T17:28:15.782Z from the info I pasted above, apparently. To my knowledge I am not on any insider release. I upgraded to this release because the release notes promised performance improvements. The prior release without the problems I am experience would just freeze for a couple minutes when opening one of these files, but then everything worked pretty well. Now, the usability has gone down dramatically. :(

@lucyzhang929
Copy link
Contributor

Hi @dullroar,

The fix for "I cannot type in pre-existing code cells in a notebook" is now available in Insiders, which can be downloaded here: https://github.com/microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-main.
Can you try out the latest Insiders build and see if you run into any issues typing in pre-existing code cells?

For the performance issues, can you check if the Incremental Grid Rendering feature is on? You can find this by going to Settings and searching for Incremental Grid Rendering. Turning this feature off should give you the same performance as the previous release (1.32).
Screen Shot 2021-11-04 at 8 32 35 AM

For the Markdown keyboard shortcuts, could you explain the specific shortcuts that are not working and what issues they are causing?

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

  1. I am now on the Insiders build and can state the "cannot type in pre-existing code cells in a notebook" still exists there.
  2. I turned off Incremental Grid Rendering, and indeed it goes back to the old behavior of taking minutes to render and become responsive, but then it works quite nicely. I prefer that. I can always go get some more water while waiting for a notebook to open. :)
  3. It isn't the Markdown keyboard shortcuts that aren't working - sorry if I was unclear. It is Ctrl-C/Ctrl-V isn't working by keyboard shortcut in the code cells when the symptoms in problem 1 are occurring, but mouse commands (select all, Copy, Paste) still work. So sometimes, since it can take minutes for a code cell to become editable, I will use the mouse to copy out the code in the cell, edit it somewhere else (koff Notepad++ koff) and then use the mouse to paste it back into the notebook code cell. That works, but is the definition of "clunky" and obviously not desired behavior.

@Charles-Gagnon
Copy link
Contributor

Can you confirm the version of ADS Insiders you're using (Help -> About -> Copy)

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

Version: 1.33.0 (user setup)
Commit: 6783aa6
Date: 2021-10-26T17:28:15.782Z
VS Code: 1.58.0
Electron: 12.0.9
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.17763

@Charles-Gagnon
Copy link
Contributor

Ah, that's still the stable release. Could you try following the instructions here to get the insiders build and try that? https://github.com/Microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-main

(they can be installed side-by-side so you don't have to uninstall the stable build or anything first)

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

I am confused. I downloaded the release from that page, installed it, and started it from the installer wanting to launch it. Do I have to remove the system-installed release first?

@Charles-Gagnon
Copy link
Contributor

Charles-Gagnon commented Nov 4, 2021

Odd, which insiders installer did you use?

And do you have a start menu entry for Azure Data Studio - Insiders that you can launch directly?

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

azuredatastudio-windows-user-setup-1.34.0-insider.exe is what I launched from the Downloads folder.

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

Logged out, logged back in, started ADS, confirmed in Task Manager the path to the executable was in my AppData. It still looks like the same About info, though:
Version: 1.33.0 (user setup)
Commit: 6783aa6
Date: 2021-10-26T17:28:15.782Z
VS Code: 1.58.0
Electron: 12.0.9
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.17763

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

Also confirmed ADS is in my PATH and that it is pointing to AppData, and that there isn't another ADS in my path (like from a system install).

@Charles-Gagnon
Copy link
Contributor

Charles-Gagnon commented Nov 4, 2021

How are you launching the insiders build? You should have two entries in the start menu :

image

Or you can also

  1. Launch from a cmd window with azuredatastudio-insiders
  2. Browse to %LOCALAPPDATA%\Programs\Azure Data Studio - Insiders and launch azuredatastudio-insiders.exe
  3. Download the zip version of the application and run it directly from there

@Charles-Gagnon Charles-Gagnon changed the title Since latest update lots of performance problems editing complicated notebooks Can't type in code cell after editing Notebook text cell Nov 4, 2021
@Charles-Gagnon
Copy link
Contributor

@dullroar FYI I updated the title to focus specifically on the "can't type in the cell" issue.

Once we've verified the fix with you then we can see if you're still running into perf issues and if so open a separate issue for that.

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

OK, so reinstalling looks like that cleared up running the right exe, so that's done. Chalk to probable mistake on my part. Switching of Incremental Grid Rendering took care of the Ctrl-C/Ctrl-V thing, which I think was simply trying to interact with a code cell before it was done rendering (but no good visual way to tell that). The weird thing was copy/paste working from the mouse, but not the keyboard. I am sure you all understand it under the covers. And yes, per the perf issue, I would love to continue working on it, because I think the use case is valid, but the rendering is SO SLOW (minutes, literally watching CPU in Task Manager to know when I can start interacting with the notebook).

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

Thanks @Charles-Gagnon @lucyzhang929 for your help on diagnostics.

@Charles-Gagnon
Copy link
Contributor

Thanks for the confirmation @dullroar - so it sounds like the "can't type in code cell" issue is resolved in the insiders?

Would you mind making a new issue for the perf issues with any details you can provide? We can start helping with taking a look at that separately then.

@dullroar
Copy link
Author

dullroar commented Nov 4, 2021

@Charles-Gagnon I would consider this issue resolved. May I tag you when I open a new performance-related ticket?

@chlafreniere
Copy link
Contributor

Feel free to tag me @dullroar. I can assign it out 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment