Commit Graph

554 Commits

Author SHA1 Message Date
Nikita Pavlenko
a9ce4d15f3 [PyCharm] Jupyter (fix): Fixed wrong RangeHighlighter recreation on cell bounds change. #PY-77353 Fixed
(cherry picked from commit 4e2cb72b483757933def97f4f7975622f2bf45b8)

GitOrigin-RevId: a45fabafdf312651051693a882aab3b38fd88156
2024-11-18 15:26:45 +00:00
Nikita Pavlenko
5f371fb815 [PyCharm] PY-74366 Jupyter/RemoteDev (feat): Custom notebook folding regions will be handled properly by FrontendEditorFoldingModelAdapter
(cherry picked from commit 2ae7a1063c9ae06ec6323cdd4a00e66003200223)

GitOrigin-RevId: 62df13da690323feb17f154e3881b190a69fc03e
2024-11-18 15:26:45 +00:00
Bogdan Kirilenko
14d713ead7 [PyCharm] PY-73713 jupyter run cell button stick to the first line: added NotebookEditorScrollEndManager with flow to catch when user stopped scrolling to redraw the button
(cherry picked from commit ea05db9d1d0703463da3eb2322b1ce9b4474ac68)

GitOrigin-RevId: 640cbde3d2d49ac4e142f48877fcd41f68b3a986
2024-11-18 15:26:45 +00:00
Bogdan Kirilenko
35aaa81e3d [PyCharm] PY-73713 jupyter run cell button minor fix : showing for empty code cells again
(cherry picked from commit 68405e52499a36a4bbdb2ab9fa248a90e22de3b2)

GitOrigin-RevId: f9d3aa3b44339b78302b45d2ca52c78dd29b1d51
2024-11-18 15:26:45 +00:00
Bogdan Kirilenko
158e70ea4d [PyCharm] PY-77218 Jupyter bugfix - don't show add cells toolbar at the end of the console + minor refactoring
(cherry picked from commit bff263fb3c7131180d80e44cae52f9ff39fc27c3)

GitOrigin-RevId: ebf47b6024e1178a6d9b2fb3421285a3761856b0
2024-11-18 15:26:44 +00:00
Nikita.Ashihmin
2e072ee47d PY-74366 Jupyter/RemDev(feat): Remove unused Jupyter JS Error console
(cherry picked from commit ff510411fb2d5d8b81d75c0f4530141811579f32)

GitOrigin-RevId: f7cdc1c499532352581b945fbc62274cfb3c33ad
2024-11-18 15:26:44 +00:00
Nikita.Ashihmin
ac9aaf7d70 PY-77242 Jupyter(fix): Jupyter: Make markdown behaviour as in JupyterLab
(cherry picked from commit 186672d925b527f1a666c815f8b370d51ae1c2e3)

GitOrigin-RevId: 3e0cae82de3514cd9de8a9ec4c0cf68e092b7f35
2024-11-18 15:26:44 +00:00
Bogdan Kirilenko
13c9f99a3d [PyCharm] PY-74106 Refactor - split NotebookLineMarkerRenderer.kt into separate classes + removed some unused classes + minor changes
(cherry picked from commit 17052556a582b7eadaf98ec5e3fa8a92b169d8e5)

GitOrigin-RevId: f24903ce7d1eeb2e92a2c88c854188051fe653c7
2024-11-18 15:26:44 +00:00
Bogdan Kirilenko
b01ce73f75 [PyCharm] PY-73713 Jupyter cell view: naive implementation of the "stick run cell button to the first visible line" feature
(cherry picked from commit 1f9ccbe2fbf1c0a0bdec117a7f7f36cfeeb4b09e)

GitOrigin-RevId: adfc5f178597eecd99c30f3239ba6566f41c655f
2024-11-18 15:26:44 +00:00
Nikita Pavlenko
2559ed642b [PyCharm] PY-74366 Jupyter/RemoteDev (feat): "Add * cell *" actions rework for remote dev.
(cherry picked from commit dd8d8b22c63dd8241be014f2dfcf9e2a29a78f6c)

GitOrigin-RevId: a6a5605cfa6903e01479fde3ef7402c957cd7ad1
2024-11-18 15:26:44 +00:00
Nikita.Ashihmin
2f73603c44 PY-74366 Jupyter/RemDev(refactor): Extract install remote back server listeners to back module
(cherry picked from commit bdd4e39f5bc9118e5f7355d08c815b2d7e7af884)

GitOrigin-RevId: 038992b6327839c125d4e436b8c3f7781b605d31
2024-11-18 15:26:43 +00:00
Anton Efimchuk
bbec8974b1 PY-76779 [Jupyter] Fix switch scroll owner on mouse click
(cherry picked from commit 47cd88d43e3b3ea1caef8be1f92048e875fe44b3)

GitOrigin-RevId: 585900b8c3164e8d9ae6ad5cda19b2ef48e2f6bc
2024-11-18 15:26:43 +00:00
Nikita.Ashihmin
4cf18ceb87 PY-76676 Jupyter(fix): Markdown is not rendered with -Dide.coroutine.write.intent.lock=false
(cherry picked from commit df08f768829110f4aaf863e814289ed75b04451b)

GitOrigin-RevId: 83136e2f38542e8d58e8023344b622bd3dfa97f6
2024-11-18 15:26:43 +00:00
Nikita Pavlenko
3403ce1d3e [PyCharm] PY-74366 Jupyter/RemoteDev (feat): Cell separators will be hidden in RemoteDev.
(cherry picked from commit ce0563ee943c0b092972b3f445f0bfea34ba2b59)

GitOrigin-RevId: c5d88c21f156c6055dd63bedf6a70e0a84786b8a
2024-11-18 15:26:43 +00:00
Anton Efimchuk
9c629f00da PY-69935 [Jupyter] Add setting to enable/disable scrolling in cell output
(cherry picked from commit af739623491d71eb9b9bb137d47e1953914afd24)

GitOrigin-RevId: f580eced030ba9dcf4e2fa7f1a5c1e6aa29653e4
2024-11-18 15:26:43 +00:00
Nikita Pavlenko
5599dbf678 [PyCharm] Jupyter (feat): Restricted outputs resize to a minimum size of one editor line. Added settingsfor max outputs size. #PY-76401 Fixed
(cherry picked from commit 1e342b080aca11e3f014835837b07a96542dd6f8)

GitOrigin-RevId: 0bc855b595037c0741bee73f35255b21a31c96b9
2024-11-18 15:26:43 +00:00
Nikita Pavlenko
4579b9befb [PyCharm] PY-74366 Jupyter/RemoteDev (feat): CEF outputs will be proper and immediately displayed on cell run.
(cherry picked from commit 08cd26c32fa8b994f74885ce835d98d003e1d60b)

GitOrigin-RevId: bf60681c5504033461550c855d8e44e3a710cc49
2024-11-18 15:26:43 +00:00
Nikita Pavlenko
ab63e63ae6 PY-74366 Jupyter/RemoteDev (feat): In Remote Dev in notebooks, tables will be displayed in as html-table. Cells execution state will be synchronized.
(cherry picked from commit 853b332b230ffdaf6da890f105811171fd84a4ca)


(cherry picked from commit 059b813db573293afa210cd39dcc76c7d081a4b7)

IJ-CR-147319

GitOrigin-RevId: 177d11260385a3b1dc514c39a52701f585507647
2024-10-28 15:15:12 +00:00
Nikita.Ashihmin
8beae300b4 [PyCharm] PY-74366 Jupyter (refactor): Refactor JupyterCommandModeActions, remove use delegate actions
(cherry picked from commit f8f52837594539b04b6a8c2f0d9c011cac1d3a52)


(cherry picked from commit 51621231af852333aad204797ca8b5801a2b254d)

IJ-CR-147319

GitOrigin-RevId: 7a56e7d579258afc964be00c0f468f9f087a7c3e
2024-10-28 15:15:11 +00:00
Nikita Pavlenko
8514cdbb1a [PyCharm] Jupyter (refactor): From EditorCell removed 'mode' and NotebookCellInlayManager lost subscription to NOTEBOOK_EDITOR_MODE. #PY-76627 Fixed
Also small refactor of HeadingInfo and a system of extensions in EditorCell.

(cherry picked from commit c7817c899947c94aa7d288d757cb6b642941414c)


(cherry picked from commit a2a93f22e6a6d264785a9ea236b1689bd69b88cf)

IJ-CR-147319

GitOrigin-RevId: e99bfb9ce00f69cf3679b0f3f12ca06e9d7d1a24
2024-10-28 15:15:10 +00:00
Anton Efimchuk
5bf8a16266 PY-75948 [Jypyter] Restore destroyed inlays after edit
(cherry picked from commit 948f8885dd3ec8958ab495fb2e6506e5899759a4)


(cherry picked from commit f7d2159f71bdb66460abc639b4a8f73093b1cde5)

IJ-CR-147319

GitOrigin-RevId: 855755003147e51d3a4db4e42de2c6b8286ac9af
2024-10-28 15:15:10 +00:00
Bogdan Kirilenko
d8f4c3b0ef [PyCharm] PY-75896 Improved appearance of jupyter diff - showing cell markers and separators
(cherry picked from commit 63fe10754c073b9b3ab74df5b619165af4ba8bca)


(cherry picked from commit 4c7c25a45e2fa789ef5bc13ec0ab16aba3373fb7)

IJ-CR-147319

GitOrigin-RevId: 6ed8e098b92c3a724c7d5b62e287d661bb082847
2024-10-28 15:15:10 +00:00
Vladislav Kuznetsov
d4fc023f6b LLM-362: Refactor EmptySoftWrapPainter to make it platform
GitOrigin-RevId: c65c841ed2bbdd22b99056839e684bdae00dae47
2024-10-14 21:59:19 +00:00
Ilya Muradyan
e50be88163 KTNB-810: Improve "override exising" UX, show "Save All Plots" action in the context menu
"Save all" has gone from the cell menu after PY-73353

GitOrigin-RevId: 38350fea422b785df7a4e1e96b4c5999a73ad5f1
2024-10-07 00:05:07 +00:00
Nikita.Ashihmin
c6a8189580 PY-75934 Jupyter(fix): Start use JupyterFileUtils for all converts from source file,text Add dispose for all listeners of NotebookCellInlayManager
GitOrigin-RevId: 226851fe8e5ebeed8492f058883ca4dc144898d4
2024-10-05 23:58:20 +00:00
Nikita Pavlenko
225b86c836 [PyCharm] Jupyter (fix): Reworked command and edit mode behavior for Markdown cells. (#PY-76244, #PY-76245 #PY-75855, #PY-76159) Fixed
GitOrigin-RevId: 4938b2a9c624d7de704b6139dbf7a7c78ff98425
2024-09-27 16:36:31 +00:00
Anton Efimchuk
8fd29d3516 PY-76049 [Jupyter] Fix document intervals sync and custom folding update
GitOrigin-RevId: 2a22e541554e5e158fdb4db9dfd32fd386e7f684
2024-09-25 07:35:28 +00:00
Nikita Pavlenko
63b2359362 [PyCharm] Jupyter (fix): Fixed gray rectangles that appear for several frames on Markdown render. #PY-76132 Fixed
GitOrigin-RevId: f9aed777a7a086e161cca637f0efcc514f98d959
2024-09-23 16:45:25 +00:00
Nikita Pavlenko
7f534e8b7c [PyCharm] Jupyter (refactor): Unused GUTTER_ACTION_KEY removed from NotebookCellInlayController.
GitOrigin-RevId: b4a55dbd19ed260ef6fd2dbc6b5d8ca62375dbf0
2024-09-23 16:45:25 +00:00
Nikita Pavlenko
5b53e561c0 [PyCharm] PY-71195 Jupyter (refactor): NotebookEditorActionBase/RunCellGutterAction/StopCellExecutionGutterAction will be backend only.
GitOrigin-RevId: bb958c116d1b192c6c542b7fba94677f080b62a7
2024-09-23 16:45:24 +00:00
Nikita Pavlenko
e9c1dfabc1 [PyCharm] Jupyter (refactor): Calculated, stored and used once shouldShowRunButton replaced to a function.
GitOrigin-RevId: 951bbe5aa45a12670f1e556d8f476c42d57907f4
2024-09-23 16:45:24 +00:00
Nikita Pavlenko
5bee149ed0 [PyCharm] Jupyter (fix): Fixed exception on inline refactor-rename. #PY-69734 Fixed
GitOrigin-RevId: d500f518429b564252f39d0039989a9943d7e084
2024-09-23 14:06:18 +00:00
Nikita Pavlenko
c8f1014f52 [PyCharm] Jupyter (refactor): removed unnecessary val from NonIncrementalCellLines.
GitOrigin-RevId: 01d7ce96dc888dfaf3563ef3f94fdf30f2aa456f
2024-09-20 18:11:41 +00:00
Nikita Pavlenko
78a0ca4d7b [PyCharm] PY-76052 Jupyter (fix): Added some runReadAction / runWriteAction / WriteIntentReadAction.compute.
GitOrigin-RevId: 7fdb68e1319860d1cea6f8ba794b441badd97a14
2024-09-20 10:08:21 +00:00
Nikita Pavlenko
2d315ffba1 [PyCharm] Removed obsolete DSConsoleOutputInlayCustomizer / ConsoleOutputStorage and stuff around. #PY-76037 Fixed
In OutputInlayFactoryConsistentMatchTest enabled tables test.

GitOrigin-RevId: b5fc09219fb13ed86157d4a0d9e038d63011f74d
2024-09-20 10:08:20 +00:00
Anton Efimchuk
ce7635909f PY-75987 [Jupyter] Fix folding bar position calculation on notebook open
GitOrigin-RevId: f8db05c845ceef6d0d5179a59256743107e1c49e
2024-09-19 23:05:31 +00:00
Nikita Pavlenko
a924f291c2 [PyCharm] Jupyter/RemoteDev (fix): Removed obsolete OutputListener and OUTPUT_LISTENER: Topic<OutputListener>. #PY-76035 Fixed
GitOrigin-RevId: 19a4465762389b53c0fd53445eb73005e661d047
2024-09-19 12:59:41 +00:00
Anton Efimchuk
f61fb768bb PY-75857 [Jupyter] Lay out custom folding region components in the order of their appearance in document
GitOrigin-RevId: 9b5334bfd8940fce8bdc321756b3d3a7a1da860e
2024-09-19 12:25:11 +00:00
Vladimir Koshelev
fd94eba810 [jupyter] DecoratedEditor#keepScrollingPositionWhile: change ReadAction to WriteIntendReadAction
GitOrigin-RevId: 66e9417bdb8f7ac7bf8a3396eb33c4e92fdf2038
2024-09-19 10:53:46 +00:00
Nikita Pavlenko
1751d7e81a [PyCharm] PY-74366 Jupyter/RemoteDev (feat): First version of notebook output synchronization in RD. Console, image and some other outputs will be properly updated.
GitOrigin-RevId: 283aa5b0699bad1c493cf9ef6847d025028087d5
2024-09-18 10:11:58 +00:00
Nikita.Ashihmin
aca36e6cc6 PY-75934 Jupyter(fix): Fix additional memory leak on editor close
GitOrigin-RevId: 600d892d79bcb06c2af6bf717fc3e16bc6a73eb8
2024-09-17 22:16:25 +00:00
Nikita.Ashihmin
d4e1171701 PY-75934 Jupyter(fix): Fix problem that memory is not clear on editor close
GitOrigin-RevId: 08b9bf882b5cefb5ea4b89f5fca7a88fdb18beeb
2024-09-17 22:16:25 +00:00
Nikita Pavlenko
3106110b50 [PyCharm] PY-66520 Jupyter (refactor): Nested scrolling rewritten, layers and ancestor listeners removed, timeout tweaked.
GitOrigin-RevId: 2596450201eaaa08855d3041f12e5dc12ad553b1
2024-09-17 12:55:15 +00:00
Arkady.Bazhanov
5b27f83136 [notebooks] Fix initialization problems in EditorCellOutputs
This was causing JSON Jupyter output to crash.

GitOrigin-RevId: 2d4e95fdb7650a6fc3396d79ff3ce3a49e8fbe2e
2024-09-17 11:43:54 +00:00
Nikita Pavlenko
b20f34524a [PyCharm] Jupyter (fix): Fixed mouse wheel transaction timeout in smooth notebook scrolling. Set to 1000. #PY-75812 Fixed
GitOrigin-RevId: 853463bdc01846a2c340e341ccab111e5c57e679
2024-09-16 17:14:20 +00:00
Nikita Pavlenko
f9c4fc7c62 [PyCharm] Jupyter (fix): Fixed missing editor in console. #PY-31502 Fixed
GitOrigin-RevId: c389b26f907ad05aa674ad35d22c3ed094473e97
2024-09-16 12:41:37 +00:00
Anton Efimchuk
45094a7305 PY-75936 [Jupyter] Fix inlay creation on output data update
GitOrigin-RevId: fc101415725a8b7dd70012e2f04b332d8442a643
2024-09-16 12:33:59 +00:00
Anton Efimchuk
b7bd47c0eb [Jupyter] Replace Flow with ObservableProperty
GitOrigin-RevId: 472aef73e1b7c65e8c3ad345a2aad3157d61549d
2024-09-12 22:26:27 +00:00
Anton Efimchuk
bdea992c1a PY-74255 [Jupyter] Separate output keys retrieval and ui update logic. Update outputs only from EDT thread
GitOrigin-RevId: ec883dde8dc14db1d6a2ccfaa3c80206c4812a01
2024-09-12 22:26:27 +00:00
Bogdan Kirilenko
6cf6f20581 [PyCharm] PY-74597 fix gutter visual issues in zen/distraction free modes
GitOrigin-RevId: 3d69e2464d53d77fbcb05b10250f2ac30702f611
2024-09-12 21:18:01 +00:00