<｜begin▁of▁sentence｜>### Instruction:
Suppose you have an interactive session where you want to work with igraph objects 'on-the-fly'. How would you embed an IPython shell into your script allowing you to interact with the igraph objects within your script's environment?
### Response:
from igraph.app.shell import IPythonShell

# Create an IPython shell instance
shell = IPythonShell()

# Embed an IPython shell into the script
# It will allow interactive work with igraph objects
shell()
<|EOT|>
