nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.92k stars 334 forks source link

Kernel recognition via shebang line #1127

Open Kamik423 opened 6 years ago

Kamik423 commented 6 years ago

It would be great if Hydrogen would not prompt me for which kernel I want to use, if my script starts with

#! /usr/bin/env python3

max-sixty commented 6 years ago

Or if there's only one kernel? But then maybe needs to state something like 'connected to Python 3; only kernel available'

lgeiger commented 6 years ago

I don't think we're able to implement this in a language agnostic way.

Kamik423 commented 6 years ago

Shebang should be pretty language agnostic. And then just ignore any input you do not understand as to not try and use the language „Create by ...“

lgeiger commented 6 years ago

In that case we'd be happy to receive PRs implementing a feature like this.