Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aborg-dev/ipython_notebook_log
Extension to enable logging of IPython notebook execution to file
https://github.com/aborg-dev/ipython_notebook_log
Last synced: 25 days ago
JSON representation
Extension to enable logging of IPython notebook execution to file
- Host: GitHub
- URL: https://github.com/aborg-dev/ipython_notebook_log
- Owner: aborg-dev
- Created: 2017-01-21T22:38:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-26T17:22:04.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T19:10:14.116Z (25 days ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IPython Notebook extension for logging progress
This extension enables logging of inputs and outputs of ipython notebook cells to the log file.
When you execute the cell, it's content and everything it prints will get printed to a specified file.
## Usage example
To activate logging you first need to download the notebook_log.py file and put it into .ipython/extensions folder:
```bash
curl https://raw.githubusercontent.com/akashin/ipython_notebook_log/master/notebook_log.py \
> ~/.ipython/extensions/notebook_log.py
```Then, write this in the ipython cell of your notebook to activate logging:
```python
%load_ext notebook_log
%register_logging ~/log_file.txt
```To activate the extension on startup add this to your ipython profile file
(by default it's located at ~/.ipython/profile_default/ipython_config.py)```python
c.InteractiveShellApp.extensions = [
'notebook_log'
]
```