2016-01-22 19:08:26 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-01-23 13:48:33 -06:00
|
|
|
"flag"
|
|
|
|
"log"
|
2016-01-22 19:08:26 -06:00
|
|
|
)
|
|
|
|
|
2017-09-20 11:53:36 -04:00
|
|
|
const (
|
|
|
|
|
|
|
|
// Version defines the gophernotes version.
|
|
|
|
Version string = "1.0.0"
|
|
|
|
|
|
|
|
// ProtocolVersion defines the Jupyter protocol version.
|
|
|
|
ProtocolVersion string = "5.0"
|
|
|
|
)
|
2017-08-25 23:45:04 -04:00
|
|
|
|
2016-01-22 19:08:26 -06:00
|
|
|
func main() {
|
2016-01-23 13:48:33 -06:00
|
|
|
|
2017-07-22 16:49:22 -04:00
|
|
|
// Parse the connection file.
|
2016-01-23 13:48:33 -06:00
|
|
|
flag.Parse()
|
|
|
|
if flag.NArg() < 1 {
|
2017-07-22 16:49:22 -04:00
|
|
|
log.Fatalln("Need a command line argument specifying the connection file.")
|
2016-01-23 13:48:33 -06:00
|
|
|
}
|
|
|
|
|
2017-07-22 16:49:22 -04:00
|
|
|
// Run the kernel.
|
2017-08-01 17:22:40 -04:00
|
|
|
runKernel(flag.Arg(0))
|
2016-01-22 19:08:26 -06:00
|
|
|
}
|