Call mo.output.replace from rust
#5405
Unanswered
williambdean
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Nice! Looked at your PR. A little tricky with callbacks. Using internals may be subject to change- so let us know if this breaks at any point |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
I'm trying to call
mo.outputfunctions from within rustI'm seeing that the
get_contextfunction is not being detectedmarimo/marimo/_runtime/context/types.py
Lines 226 to 234 in 77e9556
Any idea on a work around? Maybe I get get the current context from within python and create partial function
PR I'm working on is here: pymc-devs/nutpie#224
EDIT: I was able to get it working by replacing all get_context calls and passing ctx.stream directly. Required rewriting the logic of
mo.output.replaceBeta Was this translation helpful? Give feedback.
All reactions