Skip to content
New issue

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

app.commands.execute("notebook:run-all-below") does not work if cell collapsed #112

Open
pixelrakete opened this issue Mar 19, 2023 · 0 comments

Comments

@pixelrakete
Copy link

If I use this code and have the cell collapsed, it doesn't work. Only if the cell code is visible.

import asyncio
app = JupyterFrontEnd()
out = Output()

async def init():
    await app.ready()
    app.commands.execute("notebook:move-cursor-down")
    app.commands.execute("notebook:run-all-below")
    out.append_stdout(cmds)


def on_button_clicked(b):
    global channel_name
    channel_name = cn.value
    cn.close()
    button.close()    
    asyncio.create_task(init())
    out
    
# start check
button.on_click(on_button_clicked)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant