-
Notifications
You must be signed in to change notification settings - Fork 66
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
Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead. #11
Comments
Seeing this also, when running in Jupyter notebook. |
Seeing this also, when running in Jupyter notebook in Colab. |
still seeeing this one in JupyterLab. Any workarounds? |
The only workaround I could see is using async playwright to login to Schwab since the sync_playwright library is inherently incompatible with Jupyter |
@itsjafer could this be added with an option when creating using |
Brief update on this: I tested out an asynchronous version and it seemed to work well with Jupyter/Colab, though it wasn't actually able to login as expected. I'll continue looking into offering an async solution in the meantime. |
I made an async login a few weeks ago that I was running on streamlit. |
Cool!
Thanks
…On Mon, Mar 4, 2024 at 10:00 PM 4rumprom ***@***.***> wrote:
I made an async login a few weeks ago that I was running on streamlit.
I'll try to see if I can retrieve it...
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6L6M5AKUN7U5INDH6NXFTYWTHHDAVCNFSM6AAAAAAQRUB7UWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGM2TONZZHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So I found the code! I'll create a new pull request as soon as my current one for option strategies went through. |
Hi version 0.4.0 is now compatible with asynchronous environments. Thank you @4rumprom for your contribution! |
Hello,
I am working on implementing the schab-api package with my trading strategy, and have gotten the error:
"Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead."
After some investigation, it looks like there is an issue with using the schwab-api within spyder. Is there a workaround for this? I saw that there was a way to get things to run on google colab, but the solution does not work locally for either spyder or jupyter notebook.
The text was updated successfully, but these errors were encountered: