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

feat: support JupyterLite/Emscripten #332

Merged
merged 1 commit into from
Apr 15, 2024
Merged

feat: support JupyterLite/Emscripten #332

merged 1 commit into from
Apr 15, 2024

Conversation

wey-gu
Copy link
Contributor

@wey-gu wey-gu commented Apr 13, 2024

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

This is a fix on Thrift python, to enable nebula-python being supported on jupyterlite, a wasm env in browser powered by pyodide.

This will enable embedding runnable jupyter/python client runtime of nebulagraph in a browser or inline of docs/tutorials in the future.

How do you solve it?

This is an equivalent downstream implementation of my pr on fbthrift.

Just to inspect the sys platform and when it's on WASM(with Emscripten), just don't lock as it was done for Windows.

Note

This change has to be applied again every time thrift gen was triggered.

This is a fix on Thrift python, to enable nebula-python being
supported on jupyterlite, a wasm env in browser powered by pyodide.

This will enable embed runnable jupyter/python client of nebulagraph
in browser or inline of docs/toturials in the future.
@wey-gu wey-gu requested a review from Nicole00 April 15, 2024 02:29
@Nicole00 Nicole00 merged commit 6895832 into master Apr 15, 2024
10 checks passed
@Nicole00 Nicole00 deleted the support_pyodide branch April 15, 2024 06:59
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

Successfully merging this pull request may close these issues.

2 participants