Skip to content

Instantly share code, notes, and snippets.

@chongshenng
Created September 23, 2024 14:19
Show Gist options
  • Select an option

  • Save chongshenng/e043bd5c92f2983bb9afe74edded0c1f to your computer and use it in GitHub Desktop.

Select an option

Save chongshenng/e043bd5c92f2983bb9afe74edded0c1f to your computer and use it in GitHub Desktop.
Embed `ipython` shell in a Python script
from IPython import embed
from traitlets.config import get_config
c = get_config()
c.InteractiveShellEmbed.colors = "Linux"
embed(config=c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment