lgeiger / hydrogen-launcher

:rocket: Launch terminals and jupyter consoles connected to hydrogen
https://atom.io/packages/hydrogen-launcher
MIT License
96 stars 25 forks source link

add configure of virtual envs/conda envs #25

Open taoluo opened 7 years ago

daizutabi commented 6 years ago

An ad hoc solution to launch a PlatformIO IDE Terminal via hydrogen-launcher v1.2.1.

In launchJupyterInPlatformIoTerminal() in "~/.atom/packages/hydrogen-launcher/lib/main.js", comment out a line #99 and insert two new lines as below:

(original)

 98:      } else if (err) {
 99:        atom.notifications.addError(err.message);
100:      } else {

(modified)

 98:      } else if (err) {
 99:        # atom.notifications.addError(err.message);
100:        var command = `jupyter ${jpConsole} --existing ${connectionFile}`;
101:        this.platformIoTerminal.run([command]);
102:      } else {

This works well for me (Windows 10. Python 3.6. Conda envs.).

example