Skip to content

Kernel spec #3

@coatless

Description

@coatless

Two options:

  1. Set in format to:
jupyter: 
  kernelspec:
    name: "ir"
    language: "R"
    display_name: "R"

https://quarto.org/docs/computations/python.html#kernel-selection

  1. Do a pass on the output to get:
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "ir",
      "display_name": "R"
    },
    "language_info": {
      "name": "R"
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "id": "apL0to5-Mz68"
      },
      "outputs": [],
      "source": []
    }
  ]
}

The most important components is the kernelspec portion

Note: The default output from Quarto is:

{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# Untitled\n",
        "You can learn more about controlling the appearance of HTML output here:\n",
        "<https://quarto.org/docs/output-formats/html-basics.html>"
      ],
      "id": "46fe420b-9579-4ed2-a1df-ebe98342584b"
    }
  ],
  "nbformat": 4,
  "nbformat_minor": 5,
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    }
  }
}

Details on Jupyter Notebook's underlying JSON representation can be found here:

https://nbformat.readthedocs.io/en/latest/format_description.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions