Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Runs Python code in a persistent Jupyter kernel so variables and imports carry across cells via hamelnb.
82% 100%+18 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
After finishing data exploration in a background session called 'datasession', what terminal command terminates it to free up memory?
Specifies hamelnb stop datasession
3 of 3 safety checks passed
Run Python code in a persistent Jupyter kernel so that variables, imports, and state carry over between executions — exactly like working in a notebook, but from the CLI.
.ipynb notebook file from the command linepip install hamelnb
# or use jupyter directly
pip install jupyter
# Start a persistent kernel session (keeps running between calls)
hamelnb start --name datasession
# Execute a code snippet in the named session
hamelnb run datasession "import pandas as pd; df = pd.read_csv('data.csv'); print(df.shape)"
# Execute next cell — df variable is still available
hamelnb run datasession "print(df.describe())"
# Stop session when done
hamelnb stop datasession
Next to this one in the catalogue, plus more from the same author.