PY-66050 Add Jupyter module to the Python learning course

It can't be explicitly added to the `PythonLearningCourse` because Python course can exist without Jupyter plugin, for example, in PyCharm Community.

GitOrigin-RevId: 89d30d38fe3a63fc6eec9fe6ff10ca1f4bdf9f6e
This commit is contained in:
Konstantin Hudyakov
2025-01-22 16:21:53 +02:00
committed by intellij-monorepo-bot
parent 3c41de53fb
commit dc3e4391fb
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
library,kernel_python 3.4,kernel_python 3.5,kernel_python 3.6,kernel_python 3.7,kernel_python 3.8,total_count
numpy,57564,578800,2108495,1739315,87656,4571830
matplotlib, 43181,438386,1625902,1385835,75148,3568452
pandas,36357,346667,1530252,1500068,72433,3485777
sklearn,14938,222672,912615,799426,34921,1984572
os,13200,176685,592084,436535,21914,1240418
seaborn,9578,105132,467280,513018,23289,1118297
scipy,12898,112992,402051,319311,14664,861916
time,8722,86455,294717,214953,10123,614970
tensorflow,4212,123837,269226,155622,5548,558445
random,5325,75455,260000,185925,8177,534882
math,6389,78262,245540,194693,8754,533638
sys,7784,73858,250441,158359,9379,499821
IPython,12886,81487,229599,152128,7994,484094
keras,2447,67837,243403,120632,2653,436972
datetime,5554,46305,190586,180519,10067,433031
re,5898,48267,191965,163205,7414,416749
warnings,3822,37276,180478,185290,6575,413441
collections,5433,57516,177266,116257,6051,362523
json,3662,41972,169014,132836,7443,354927
requests,2429,28801,147782,153160,8229,340401
1 library kernel_python 3.4 kernel_python 3.5 kernel_python 3.6 kernel_python 3.7 kernel_python 3.8 total_count
2 numpy 57564 578800 2108495 1739315 87656 4571830
3 matplotlib 43181 438386 1625902 1385835 75148 3568452
4 pandas 36357 346667 1530252 1500068 72433 3485777
5 sklearn 14938 222672 912615 799426 34921 1984572
6 os 13200 176685 592084 436535 21914 1240418
7 seaborn 9578 105132 467280 513018 23289 1118297
8 scipy 12898 112992 402051 319311 14664 861916
9 time 8722 86455 294717 214953 10123 614970
10 tensorflow 4212 123837 269226 155622 5548 558445
11 random 5325 75455 260000 185925 8177 534882
12 math 6389 78262 245540 194693 8754 533638
13 sys 7784 73858 250441 158359 9379 499821
14 IPython 12886 81487 229599 152128 7994 484094
15 keras 2447 67837 243403 120632 2653 436972
16 datetime 5554 46305 190586 180519 10067 433031
17 re 5898 48267 191965 163205 7414 416749
18 warnings 3822 37276 180478 185290 6575 413441
19 collections 5433 57516 177266 116257 6051 362523
20 json 3662 41972 169014 132836 7443 354927
21 requests 2429 28801 147782 153160 8229 340401

View File

@@ -24,6 +24,7 @@ import com.jetbrains.python.PythonLanguage
import training.dsl.LessonUtil
import training.learn.CourseManager
import training.learn.LessonsBundle
import training.learn.course.IftModule
import training.learn.course.LearningCourseBase
import training.learn.course.LearningModule
import training.learn.course.LessonType
@@ -37,7 +38,13 @@ import training.learn.lesson.general.refactorings.ExtractMethodCocktailSortLesso
import training.learn.lesson.general.refactorings.ExtractVariableFromBubbleLesson
class PythonLearningCourse : LearningCourseBase(PythonLanguage.INSTANCE.id) {
override fun modules() = onboardingTour() + stableModules() + CourseManager.instance.findCommonModules("Git")
override fun modules(): List<IftModule> {
val courseManager = CourseManager.instance
return onboardingTour() +
courseManager.findCommonModules("Jupyter") +
stableModules() +
courseManager.findCommonModules("Git")
}
private val isOnboardingLessonEnabled: Boolean
get() = PlatformUtils.isPyCharmCommunity() || PlatformUtils.isPyCharmPro()