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

More flexibility with Cells #99

Open
haesleinhuepf opened this issue Dec 18, 2023 · 1 comment
Open

More flexibility with Cells #99

haesleinhuepf opened this issue Dec 18, 2023 · 1 comment

Comments

@haesleinhuepf
Copy link
Owner

... would be possible using code like this:

from ipylab import JupyterFrontEnd

        app = JupyterFrontEnd()
        app.commands.execute("notebook:insert-cell-below")
        app.commands.execute("notebook:replace-selection", {"text": result})

Source: https://github.com/kolibril13/jupyter-tldraw/blob/b4af7d98c86ec24c026e80ec927b6ef270d42d49/src/tldraw/__init__.py#L142

@haesleinhuepf
Copy link
Owner Author

This doesn't work in colab and pycharm.

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