Jupyter Python Notebooks Logs

Jupyter Python Notebooks Logs

book

Article ID: KB0082658

calendar_today

Updated On:

Products Versions
Spotfire Data Science 6.x

Description

In some cases, such as when a job hangs in the cluster, the Notebook in Chorus does not give any notification that an issue is present. 

Issue/Introduction

Accessing Jupyter logs

Resolution

If you expect your Notebook has been running for too long, you can interrupt or restart the kernel and check the jupyter.log file for more information. To do this, follow the steps below.
  1. First you must stop the kernel. Click the 'kernel' tab at the top of the Notebook, and choose to either restart or interrupt.
  2. Run the below command in your Notebook to return the logs.

import subprocess
print subprocess.check_output("cat $CHORUS_NOTEBOOK_HOME/jupyter.log", shell=True)