We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! I'm seeing different behavior in how nbclient handles inline magics. It's cool with %%bash but won't execute %load.
%%bash
%load
Is that something that could be addressed?
Notebook:
{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "4547", "metadata": {}, "outputs": [], "source": [ "%%bash\n", "pwd" ] }, { "cell_type": "code", "execution_count": null, "id": "7184", "metadata": {}, "outputs": [], "source": [ "%load https://raw.githubusercontent.com/liquidcarbon/puppy/main/examples/Q-strings/Q.py" ] }, { "cell_type": "code", "execution_count": null, "id": "bc1947e4-a990-4e54-8bd4-a3abb9ff2baa", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "ducks-pandas-3.12", "language": "python", "name": "ducks-pandas-3.12" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 5 }
The text was updated successfully, but these errors were encountered:
possible workaround https://stackoverflow.com/questions/74810124/how-to-run-an-ipython-cell-magic-from-a-script-magic
but I really wish I could create notebook templates that pick up published scripts via %load without inventing something
Sorry, something went wrong.
for the first screenshot which you pasted , you mean nbclient will not execute second cell ? (%load xxxx)
yes - it shows as executed but nothing is loaded
I think that when I execute a notebook with a kernel
currently nbclient does neither, which is surprising.
nbclient
No branches or pull requests
Hi! I'm seeing different behavior in how nbclient handles inline magics.
It's cool with
%%bash
but won't execute%load
.Is that something that could be addressed?
What happens after running nbclient
What happens when running in Jupyter (what I'd like nbclient to do)
Notebook:
The text was updated successfully, but these errors were encountered: