added check for ipython or jupyter on server start

This commit is contained in:
Ekaterina Tuzova
2016-03-10 14:30:41 +03:00
parent e913ff6738
commit 6144dc5a94
@@ -271,7 +271,8 @@ public final class IpnbConnectionManager implements ProjectComponent {
}
try {
final PyPackage ipythonPackage = PyPackageManager.getInstance(sdk).findPackage("ipython", false);
if (ipythonPackage == null) {
final PyPackage jupyterPackage = PyPackageManager.getInstance(sdk).findPackage("jupyter", false);
if (ipythonPackage == null && jupyterPackage == null) {
showWarning(fileEditor, "Add Jupyter to the interpreter of the current project.", null);
return false;
}