Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel spec #3

Open
coatless opened this issue Sep 21, 2024 · 0 comments
Open

Kernel spec #3

coatless opened this issue Sep 21, 2024 · 0 comments

Comments

@coatless
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant