Some default beginning in python

  • Allow multiple results during one execution for one cell
1
2
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
  • Tell python interpreter to read code based on utf-8
1
2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-