Just like with Jupyter notebook, Jupyter console starts a kernel session when you first load it. Every time you run code in the console, the variables are stored in the session. Any subsequent lines you execute can access those variables.
This functionality is extremely powerful, and allows you to execute longer scripts line by line and inspect the variables at each step.
Instructions
- Open the Jupyter console by typing
ipython
. - Assign the value
5
to the variabledq
. - Assign the value
dq * 10
to the variabledq_10
. - Exit Jupyter console by typing
exit