Commit Graph

666 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
Nikita Pavlenko
36377a200f [PyCharm] PY-74366 Jupyter/RemoteDev (fix): Cell tags reworked to work with RemoteDev.
(cherry picked from commit 31c7dcfdffcad6bfb93b6723bae47bb4d5c045a9)

GitOrigin-RevId: 9202a0d2406473bd26152a0bf4b3833587be0e88
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
Bogdan Kirilenko
4b6c16f336 [PyCharm] Jupyter minor - decrease TOOLBAR_SHOW_DELAY from 250 to 125ms
(cherry picked from commit a5d25a055527f356153657de19f50090133598e3)

GitOrigin-RevId: abb00eebe33d3a10565f65341c916c6eb91b7341
2024-11-18 15:26:44 +00:00
Nikita Pavlenko
ee8b47e7d8 [PyCharm] PY-74366 Jupyter/RemoteDev (feat): Fixed context for add-cell-actions on floating toolbars between notebook cells.
(cherry picked from commit 18188db48d0228c7bf03114b807832ac45c7f33f)

GitOrigin-RevId: 23f353c9a416f309aac1d39f7e3252d03875a841
2024-11-18 15:26:44 +00:00
Bogdan Kirilenko
05843b2243 [PyCharm] PY-77218 removed BelowLastCellInlayController.kt, the lower toolbar is attached directly to editor in NotebookFileEditorService, no issues with disappearing toolbar anymore
(cherry picked from commit 64a90957e7cdbf8447f6a834715c28ca45d1792d)

GitOrigin-RevId: 7c1006c874d106c7d8df5c0df7065b724e2d2d55
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
Nikita Pavlenko
a75f1c2a5e [PyCharm] PY-74366 Jupyter (refactor): Reworked NotebookCellTagLabel, a lot of code removed. #PY-77220 Fixed
(cherry picked from commit 2cbceb46968cec790bc8732010ab952a2dc79aaa)

GitOrigin-RevId: 83a5316e699b911c3091eb3bf32c55b82b5e5efe
2024-11-18 15:26:44 +00:00
Bogdan Kirilenko
00ac74efdc [PyCharm] PY-77222 Jupyter: never show [0] execution count
(cherry picked from commit 6ced2fb865bcab05cc35e6891731acf6cada43cf)

GitOrigin-RevId: 21af80d1219551a152b98b17750becfc54969a91
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
c20e984136 [PyCharm] PY-74366 Jupyter/RemoteDev (feat): Restored lookup, code completion for notebooks. Added editor mode synchronization via RPC.
(cherry picked from commit 021bd0c3d5616fd8097d27ee692423672441c499)

GitOrigin-RevId: 96548893bcd4cd7d50e5c8f78f7bc886d3217739
2024-11-18 15:26:43 +00:00
Bogdan Kirilenko
7f57935cbd [PyCharm] PY-72283 Jupyter additional toolbar minor design fixes + registry key jupyter.cell.additional.toolbar added
(cherry picked from commit 88ec8eb240a3a15abbc8c8768c3b5d07f86e3c2f)

GitOrigin-RevId: faa9c360557257c2329898b52f1015ae36e0ec7d
2024-11-18 15:26:43 +00:00
Bogdan Kirilenko
3126a8b552 [PyCharm] PY-72283 Jupyter WIP additonal toolbar above cell panel
(cherry picked from commit ff781bb40f996aa669e71b31e42cf1f32060aaba)

GitOrigin-RevId: d05c4f9401888c96282aa4d7e3c44d3e87814460
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
7d89c85eba [PyCharm] PY-74366 Jupyter/RemoteDev (fix): Keep command mode action handler only on frontend
(cherry picked from commit 5ada255740be515ddeb7237b86680630669682e6)


(cherry picked from commit faa788f65a73279c6c62539e5c468f7d984215e1)

IJ-CR-147319

GitOrigin-RevId: 2820d6df53ba458f2df2bfa2f381c3587a6b2bcc
2024-10-28 15:15:11 +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
Bogdan Kirilenko
2175e17d51 [PyCharm] PY-75896 minor - fixing "compare with" appearance for ipynb files
GitOrigin-RevId: a5215a5c8b1c1159c965db8b5cb1e447d4608497
2024-10-14 17:15:37 +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
Vladimir Krivosheev
4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +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