Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion sparkmagic/sparkmagic/livyclientlib/livysession.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ def start(self):
self.properties['conf']['spark.yarn.appMasterEnv.HOPSWORKS_KERNEL_ID'] = kernel_id
self.properties['conf']['spark.executorEnv.HOPSWORKS_KERNEL_ID'] = kernel_id
if 'hops.util' in sys.modules:
util.attach_jupyter_configuration_to_notebook(kernel_id)
try:
util.attach_jupyter_configuration_to_notebook(kernel_id)
except Exception as e:
self.logger.error(e)
self.ipython_display.send_error(u"Warning: Failed to attach jupyter configuration to notebook. {}".format(str(e)))
pass



self.properties['cert'] = {}
material_directory = os.environ.get(constants.MATERIAL_DIRECTORY)
Expand Down