Reputation: 13
mcq_helper.py code
import ipywidgets as widgets
from IPython.display import display
import sys
output = widgets.Output()
if __name__ == '__main__':
question = sys.argv[1]
options = sys.argv[2:]
with output:
display(widgets.RadioButtons(options=options, description=question))
display(output)
I'm serving jupyterlab from my server. I would like to achieve the following:
%run
command in the cell explicitly, I want it to run by default every time a cell is executed.How can I do that?
Upvotes: 0
Views: 12