Python and JavaScript Variable Translation Errors in Colab #49
Labels
bug
Something isn't working
cache
Relates to variable hashing during sync
javascript
Relates to JavaScript or Node.js code
pipes
Relates to interprocess streaming
python
Relates to Python code
shared memory
Relates to interprocess memory mapping
Milestone
When trying to convert between python and JS in Google Colab, I ran into some unexpected errors. It seems that Bifrost would only allow for a one time conversion from a node to python variable. The same different code snippets would produce different results on consecutive runs.
I suspect the reason for this is that the import for bifrost isn't reset every time and the JS variable is then taken by bifrost so it cannot be used again. Ran on node 14.19.3, Python 3.7.13 and Bifrost 0.5.12.
In addition, Python variables changed in JS would not always "change" to the expected value when printed in Python afterwards, although I suspect these two errors are related and caused by the same underlying issue or at least similar issues.
The text was updated successfully, but these errors were encountered: