vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
247 stars 49 forks source link

JupyterLab+Colab extension #109

Closed DanielSchiavini closed 8 months ago

DanielSchiavini commented 9 months ago

Fixes https://github.com/vyperlang/titanoboa/issues/83

Usage

import boa
from boa.integrations.jupyter import BrowserSigner
from boa.network import NetworkEnv

boa.set_env(NetworkEnv(...))
boa.env.add_account(BrowserSigner())

Cute animal in Jupiter

image source

DanielSchiavini commented 8 months ago

This PR was drafted because we wanted to investigate support for notebook v6.

Since v6 is deprecated and works quite differently, I discussed with @charles-cooper that it was best to support JupyterLab and Google Colab only.

charles-cooper commented 8 months ago

it would be cool to get the RPC url from the browser signer (h/t @bout3fiddy for the idea), but out of scope here. will open a new issue for it