I have a Jupyter notebook that needs to run from the command line. For this I have the following command:
jupyter nbconvert --execute my_jupyter_notebook.ipynb --to python
This command creates a python script and then executes it. However, I'm using the logging library in Python to log certain events. When it executes the script from the command above, nothing can be seen on the terminal.
However, when I execute manually the converted jupyter, like below, I can see all the logs on my terminal:
python3 my_jupyter_notebook.py
I've tried adding extra arguments like --debug and --stdout but those just output all the code, not just the logs. Is it possible to output on the terminal the results of logging while doing an nbconvert execute command?