1 /*************************************************************************** 2 * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * 3 * * 4 * Distributed under the terms of the BSD 3-Clause License. * 5 * * 6 * The full license is in the file LICENSE, distributed with this software. * 7 ****************************************************************************/ 8 9 #include <iostream> 10 #include <memory> 11 12 #include "test_interpreter.hpp" 13 #include "xeus/xkernel.hpp" 14 #include "xeus/xkernel_configuration.hpp" 15 main(int argc,char * argv[])16int main(int argc, char* argv[]) 17 { 18 std::string file_name = (argc == 1) ? "connection.json" : argv[2]; 19 xeus::xconfiguration config = xeus::load_configuration(file_name); 20 21 using interpreter_ptr = std::unique_ptr<test_kernel::test_interpreter>; 22 interpreter_ptr interpreter = interpreter_ptr(new test_kernel::test_interpreter()); 23 xeus::xkernel kernel(config, xeus::get_user_name(), std::move(interpreter)); 24 std::cout << "starting kernel" << std::endl; 25 kernel.start(); 26 27 return 0; 28 } 29