If I use FFI with Deno Jupyter, will it not print the shared lib's stdout? (like Rust println!())

If I use FFI with Deno Jupyter, will it not print the shared lib's stdout? This is an example of how it looks normally vs in Jupyter No output in Jupyter, just finishes execution while normally it prints the training progress each epoch.
No description
No description
DAHDeno AI Helper1/20/2024
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it's possible that the standard output from the shared library you're using through FFI (Foreign Function Interface) might not be captured or displayed in the same way in Deno Jupyter as it is in a standard terminal environment. In a typical terminal environment, output from a shared library called via FFI should be displayed to stdout, including anything printed using println!() in Rust. However, Jupyter notebooks often capture stdout and display it in the notebook interface, and there could be differences in how this is handled compared to a standard terminal. If you're not seeing output in Jupyter that you would normally see in a terminal, it could be due to the way Jupyter captures and displays output. This behavior is not specific to Deno, but rather to how Jupyter interfaces with executed code. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. It might be helpful to look into Jupyter's documentation or community forums for more information on how it handles stdout from external libraries and FFI calls.
Correct. As of now Deno Jupyter is not able to capture external lib output.
are there any plans to make it possible?
It's possible to do, but we might not have bandwidth to do it for a few months
ah understandable

Looking for more? Join the community!

Recommended Posts
Strange behavior of the assertRejects() method.Behavior of the `assertRejects()` method. `assertRejects()` fails when a non-stubbed method is callModule loadingHey, I am just testing the deno_core. I know, that the deno runtime with the command line supports Can I use deno_ast to transpile arbitrary typescript?I'm just wondering if it's safe to use deno_ast to transpile arbitrary (user-generated) typescript t`deno cache` with `node_modules_dir` moves sub-dependencies into `.deno/node_modules` dirIf I execute `deno cache --node-modules-dir package-lock.json`, a `node_modules` directory is createdeno options not available in vscode debugger optionslatest vscode, latest deno, yes ive got the extension installedCan I add properties to a websocket object?``` console.dir (socket.id) console.dir (socket) Object.assign (this.control.id, socket.id) ``` I aDeno + Vite + React + VSCodeCould someone help me setup VSCode so that it recognizes React JSX without red squiggles? Also, is Deno_bindgenI'm super happy to see the Deno NPM compatibility supporting an FFI call using Rust's NAPI crate forKV read countDo `kv.list` and `kv.getAll` count as a read for each value or a single read for the operation?Undefined IP on requestsI'm using **express** and **mongo** on Deno, and i'm also trying to use **express-rate-limit**, howeHow to use `f-partial` from Fresh?Show me an example of using `f-partial` in a Deno Fresh project.KV watch initial valueDoes KV watch always trigger an initial read of the current value? Is there a way to only watch for