Skip to content

Commit

Permalink
workaround for #7468 using JUPYTER_CONFIG_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdraves committed Jun 2, 2018
1 parent c445901 commit 29c686e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public SparkMagicCommand(KernelFunctionality kernel) {
kernel,
new SparkUI.SparkUIFactoryImpl(
new SparkEngineImpl.SparkEngineFactoryImpl(),
new SparkUiDefaultsImpl(
Paths.get(System.getProperty("user.home") + File.separator + ".jupyter" + File.separator + "beakerx.json"))));
new SparkUiDefaultsImpl(Paths.get((System.getenv("JUPYTER_CONFIG_DIR") != null ? System.getenv("JUPYTER_CONFIG_DIR") : (System.getProperty("user.home") + File.separator + ".jupyter")) + File.separator + "beakerx.json"))));

}

Expand Down

0 comments on commit 29c686e

Please sign in to comment.