Help › Work in notebooks

Open notebooks from others

Open Jupyter, VS Code and Azure Data Studio notebooks and a colleague's Querlyn notebooks safely, choose the connection their cells run on, and trust a notebook you know.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Querlyn opens notebook files (.ipynb) made by Querlyn, Jupyter, Visual Studio Code and Azure Data Studio. Open one with Open File…, by dropping it on the window, or, on a Mac, from Finder's Open With.

What you see

  • Text cells show their Markdown. Raw HTML in them is shown as text, not drawn.
  • SQL cells are query cells: those of Azure Data Studio's SQL notebooks, cells whose language is SQL, and Jupyter cells that start with a %%sql line (the line is kept; what follows it runs).
  • Results the file saved are shown in the grid, as the file has them. Querlyn's own notebooks save exact values; another program's results are read from what it saved, which may be text. A cell's results say "saved with the notebook" until it runs again.
  • Python cells are Python cells: Querlyn runs them in a Jupyter kernel on this computer, once you trust the notebook (see Run Python in a notebook). Their saved outputs are shown: text, tracebacks, pictures and DataFrames.
  • Cells Querlyn does not run, such as R or Julia, are shown read-only, with their saved output when it is a picture, and kept as they are.

Saving keeps what Querlyn does not show: other programs' settings, cells and outputs are written back unchanged.

Nothing runs until you run it

Opening a notebook never runs a cell and never connects to a database. Cells run only when you run them, as in any notebook.

A notebook from elsewhere is not trusted until you say so, and a bar above its cells says what that means:

  • Pictures from the web in its text are not loaded, so opening it tells no server that you read it. Pictures inside the file are shown.
  • Links that run commands (command: links) in its text do nothing.
  • Its Python kernel does not start. Running one of its Python cells asks whether to trust the notebook first: Notebooks from elsewhere.

Choose Notebook › Trust Notebook (Trust Notebook in the bar) when you know where the notebook comes from. Trust is for the notebook's exact contents: the same file opened again stays trusted, a changed one is not. Notebooks you make in Querlyn are trusted on this computer, and saving a trusted notebook keeps it trusted. Saving a notebook you have not trusted does not trust it. Trusting a notebook runs nothing either.

Web pictures are fetched over HTTPS only, up to 1 MB each; a picture that cannot be fetched says why.

Choose the connection

A notebook saved by Querlyn names the connection its cells ran on (its name, engine, host and database; never a password). Querlyn never makes a connection from a notebook. When you open one:

  • If you have a connection of that name, engine and host, its cells run on it.
  • If one of yours looks like it (the same name, or the same host and database), a bar names it: Notebook › Use the Suggested Connection (the bar's Use button) runs the cells on it.
  • Otherwise, choose a connection in the bar or in the toolbar's connection menu. Notebooks from other programs never name a connection.

Until a connection is chosen, the cells can be read, edited and saved, but not run.

A cell that runs on a connection of its own is matched the same way, on its own: when its connection is not there, the cell says so at its top and does not run until you choose one, and a connection that looks like it is offered there. See Run notebook cells on several connections.

Help for Querlyn 0.1.0. All help topics