Skip to content

Commit bc86beb

Browse files
committed
feat(plugins): add Jupyter support and update plugin configurations
Added Jupyter plugin support across multiple properties files and updated dependencies to include Jupyter versions. Created a placeholder Jupyter notebook for initial use.
1 parent 84fa0a1 commit bc86beb

File tree

8 files changed

+59
-7
lines changed

8 files changed

+59
-7
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ project(":pycharm") {
471471
dependencies {
472472
intellijPlatform {
473473
intellijIde(prop("ideaVersion"))
474-
intellijPlugins(ideaPlugins + pycharmPlugins)
474+
intellijPlugins(ideaPlugins + pycharmPlugins + prop("jupyterPlugin"))
475475
}
476476

477477
implementation(project(":core"))

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/preview/FileEditorPreviewSketch.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ import cc.unitmesh.devti.sketch.ui.LangSketch
55
import cc.unitmesh.devti.sketch.ui.code.CodeHighlightSketch
66
import cc.unitmesh.devti.util.parser.CodeFence
77
import com.intellij.lang.Language
8-
import com.intellij.openapi.actionSystem.*
98
import com.intellij.openapi.fileEditor.FileEditor
109
import com.intellij.openapi.fileEditor.FileEditorProvider
11-
import com.intellij.openapi.fileEditor.TextEditorWithPreview
1210
import com.intellij.openapi.fileEditor.TextEditorWithPreview.*
1311
import com.intellij.openapi.fileEditor.impl.text.TextEditorProvider
1412
import com.intellij.openapi.project.Project
1513
import com.intellij.openapi.vfs.VfsUtilCore
1614
import com.intellij.openapi.vfs.VirtualFile
17-
import com.intellij.ui.dsl.builder.panel
1815
import javax.swing.JComponent
1916

2017
val editorWithPreviews: List<FileEditorProvider> =

example/Hello World.ipynb

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Untitled Notebook\n",
8+
"\n",
9+
"This is an initial placeholder notebook. Feel free to edit and rename as well as create your own notebooks, to use Google Cloud Datalab."
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {
16+
"collapsed": false
17+
},
18+
"outputs": [],
19+
"source": [
20+
"# Code cell ready to be run...\n",
21+
"print('Hello!')"
22+
]
23+
}
24+
],
25+
"metadata": {
26+
"kernelspec": {
27+
"display_name": "Python 2",
28+
"language": "python",
29+
"name": "python2"
30+
},
31+
"language_info": {
32+
"codemirror_mode": {
33+
"name": "ipython",
34+
"version": 2
35+
},
36+
"file_extension": ".py",
37+
"mimetype": "text/x-python",
38+
"name": "python",
39+
"nbconvert_exporter": "python",
40+
"pygments_lexer": "ipython2",
41+
"version": "2.7.9"
42+
}
43+
},
44+
"nbformat": 4,
45+
"nbformat_minor": 0
46+
}

gradle-223.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ platformPlugins=
1212
mermaidPlugin=
1313
plantUmlPlugin=PlantUML integration:6.5.0-IJ2022.2
1414
pythonPlugin=PythonCore:223.7571.182
15+
jupyterPlugin=
1516

1617
# check latest available version here https://plugins.jetbrains.com/plugin/8182--deprecated-rust
1718
rustPlugin=org.rust.lang:0.4.185.5086-222

gradle-233.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ ideaVersion=IU-2023.3
88
pluginSinceBuild=233
99
pluginUntilBuild=233.*
1010

11-
platformPlugins = PlantUML integration:7.10.1-IJ2023.2,com.intellij.mermaid:0.0.22+IJ.232
11+
platformPlugins = PlantUML integration:7.10.1-IJ2023.2,com.intellij.mermaid:0.0.22+IJ.232,intellij.jupyter:233.11799.196
12+
#intellij.jupyter:233.11799.196
1213
mermaidPlugin=com.intellij.mermaid:0.0.22+IJ.232
1314
plantUmlPlugin=PlantUML integration:7.10.1-IJ2023.2
1415
# check latest available version here https://plugins.jetbrains.com/plugin/22407-rust/versions
1516
rustPlugin=com.jetbrains.rust:233.21799.284
1617

1718
pythonPlugin=PythonCore:233.11799.196
19+
jupyterPlugin=intellij.jupyter:233.11799.196
1820

1921
# https://plugins.jetbrains.com/plugin/9568-go/versions
2022
goPlugin=org.jetbrains.plugins.go:233.11799.196

gradle-241.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ ideaVersion=IU-2024.1
88
pluginSinceBuild=241
99
pluginUntilBuild=251.*
1010

11-
platformPlugins=PlantUML integration:7.10.1-IJ2023.2,com.intellij.mermaid:0.0.24+IJ.243
11+
platformPlugins=PlantUML integration:7.10.1-IJ2023.2,com.intellij.mermaid:0.0.24+IJ.243,intellij.jupyter:241.14494.240
12+
#https://plugins.jetbrains.com/plugin/22814-jupyter/versions
13+
#intellij.jupyter:241.14494.240
1214
mermaidPlugin=com.intellij.mermaid:0.0.22+IJ.232
1315
plantUmlPlugin=PlantUML integration:7.10.1-IJ2023.2
1416
# check latest available version here https://plugins.jetbrains.com/plugin/22407-rust/versions
@@ -18,6 +20,8 @@ rustPlugin=com.jetbrains.rust:241.25026.24
1820
goPlugin=org.jetbrains.plugins.go:241.14494.240
1921

2022
pythonPlugin=PythonCore:241.14494.240
23+
jupyterPlugin=intellij.jupyter:241.14494.240
24+
2125
endpointsPlugin=com.intellij.microservices.ui:241.14494.150
2226
swaggerPlugin=com.intellij.swagger:241.14494.150
2327
vuePlugin=org.jetbrains.plugins.vue:241.14494.159

gradle-243.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ goPlugin=org.jetbrains.plugins.go:243.21565.211
1919

2020
# https://plugins.jetbrains.com/plugin/7322-python-community-edition/versions
2121
pythonPlugin=PythonCore:243.21565.211
22+
jupyterPlugin=intellij.jupyter:243.21565.193
23+
2224
endpointsPlugin=com.intellij.microservices.ui:243.21565.122
2325
swaggerPlugin=com.intellij.swagger:243.21565.122
2426
vuePlugin=org.jetbrains.plugins.vue:243.21565.135

pycharm/src/main/kotlin/cc/unitmesh/python/provider/PythonAutoDevFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package cc.unitmesh.python.provider
22

33
import cc.unitmesh.devti.context.model.DtClass
44
import cc.unitmesh.devti.flow.kanban.Kanban
5-
import cc.unitmesh.devti.prompting.code.TargetEndpoint
65
import cc.unitmesh.devti.gui.chat.ChatCodingPanel
76
import cc.unitmesh.devti.llms.LLMProvider
7+
import cc.unitmesh.devti.prompting.code.TargetEndpoint
88
import cc.unitmesh.devti.provider.DevFlowProvider
99
import com.intellij.openapi.project.Project
1010

0 commit comments

Comments
 (0)