ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

How to find the logs of ipykernel?

Open jishan7 opened this issue 2 years ago • 6 comments

Help Please I wanted to debug the kernel errors but I count not found the logs from ipykernel, is there a log switch need to knock on? How to modify the settings or code of ipykernel ?

jishan7 avatar Jan 09 '23 02:01 jishan7

ps: version 6.9.1

jishan7 avatar Jan 09 '23 02:01 jishan7

For instance: jupyter lab --debug.

davidbrochart avatar Jan 09 '23 07:01 davidbrochart

thanks for answer But I think I need a normal way to record the ipykernel logs only in an online service. I found too much outputs when I added --debug .

jishan7 avatar Jan 09 '23 07:01 jishan7

I think you can configure the logging of the IPKernelApp.

davidbrochart avatar Jan 09 '23 08:01 davidbrochart

I think you can configure the logging of the IPKernelApp.

thanks , I'm reading the document and try.

jishan7 avatar Jan 10 '23 02:01 jishan7

I have a question. I open the debug mode , but count not saw the log from ipykernel, I count not found the INFO level log also, such as line 300 in kernelapp.py : self.log.info("Starting the kernel at pid: %i", os.getpid())

Can you give me a simple example to print the ipykernel log? (not in jupyterlab , it's too complex)

jishan7 avatar Jan 10 '23 06:01 jishan7