Successful WASM integration in Jupyter notebooks #287
                  
                    
                      basnijholt
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment 1 reply
-
| @basnijholt thanks for sharing this information! It does sound like you might be using an older version of this library as the later versions adopt a similar approach except it compresses the wasm file using zstd and then base91 encodes the result. Also worth mentioning that the newer versions have also split out the various wasm libraries into their own packages, with "@hpcc-js/wasm" existing just for backward compatibility. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I wanted to share a successful implementation of @hpcc-js/wasm in a Jupyter widget environment: https://github.com/pipefunc/graphviz-anywidget. I found @GordonSmith's issue here pygraphviz/pygraphviz#319 (comment) so I thought it might be nice to share.
We faced an interesting challenge, getting WASM to work consistently across different Jupyter environments (Lab, Notebook, VS Code). Our solution was to embed the WASM binary in the JS bundle as base64.
This approach works reliably across all Jupyter environments without needing a separate file server. I thought this might be useful information for others trying to use @hpcc-js/wasm in similar environments.
Thank you for providing this powerful WASM implementation!
Beta Was this translation helpful? Give feedback.
All reactions