{"action":"opened","issue":{"url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/123","labels_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/123/comments","events_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/123/events","html_url":"https://github.com/ibm-et/spark-kernel/issues/123","id":102221848,"number":123,"title":"Adding Imports through configuration","user":{"login":"slowenthal","id":2955904,"avatar_url":"https://avatars.githubusercontent.com/u/2955904?v=3","gravatar_id":"","url":"https://api.github.com/users/slowenthal","html_url":"https://github.com/slowenthal","followers_url":"https://api.github.com/users/slowenthal/followers","following_url":"https://api.github.com/users/slowenthal/following{/other_user}","gists_url":"https://api.github.com/users/slowenthal/gists{/gist_id}","starred_url":"https://api.github.com/users/slowenthal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slowenthal/subscriptions","organizations_url":"https://api.github.com/users/slowenthal/orgs","repos_url":"https://api.github.com/users/slowenthal/repos","events_url":"https://api.github.com/users/slowenthal/events{/privacy}","received_events_url":"https://api.github.com/users/slowenthal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T19:50:16Z","updated_at":"2015-08-20T19:50:16Z","closed_at":null,"body":"In getting this to work with the spark-cassandra connector, I added a line as below to com.ibm.spark.interpreter.ScalaInterpreter.   As these are all strings, it would be cool to specify imports through configuration.    \r\n\r\n//   ADD IMPORTS generates too many classes, client is responsible for adding import\r\n      logger.debug(\"Adding org.apache.spark.SparkContext._ to imports\")\r\n      sparkIMain.addImports(\"com.datastax.spark.connector._\")\r\n      sparkIMain.addImports(\"org.apache.spark.SparkContext._\")\r\n"}}