File output within cell

Using Jupyter and this code, using Julia:

open("/tmp/fastaz.fna", “w”)

Can’t locate this file upon my system, where might this be written to; I’m using an online browser with Jupyter.

That file will only exist on the computer where the kernel is running.

The directory where the kernel launches is usually also the current working directory (looks like pwd() in Julia), so if the file is copied there, it would be visible to be downloaded from the notebook /tree or jupyterlab file list within the browser.

A more extreme route, which won’t always work, depending on the file size, is to generate a data URL, emit that as HTML, and then click Save As in the browser.

1 Like