Skip to content

Instantly share code, notes, and snippets.

View aweinstein's full-sized avatar

Alejandro Weinstein aweinstein

  • Universidad de Valparaíso
  • Valparaíso, Chile
View GitHub Profile
#!/bin/sh
# Simple grep pattern for showing only the active part of IPython config files
# Strips comments (only start-of-line comments, which all auto-generated lines are)
# and empty lines.
#
# Usage: showipconfig /path/to/config_file.py [ /path/to/other_config_file.py ]
#
# e.g. to see all config for a given profile, you can do:
#
# showipconfig `ipython locate profile name`/*config.py