"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const antd_1 = require("antd");
const footer_1 = __importDefault(require("components/landing/footer"));
const header_1 = __importDefault(require("components/landing/header"));
const content_1 = __importDefault(require("components/landing/content"));
const with_customize_1 = __importDefault(require("lib/with-customize"));
const customize_1 = require("lib/customize");
const A_1 = __importDefault(require("components/misc/A"));
const sign_in_1 = __importDefault(require("components/landing/sign-in"));
const info_1 = __importDefault(require("components/landing/info"));
const pitch_1 = __importDefault(require("components/landing/pitch"));
const head_1 = __importDefault(require("components/landing/head"));
const snapshots_1 = __importDefault(require("components/landing/snapshots"));
const icon_1 = require("@cocalc/frontend/components/icon");
const image_1 = __importDefault(require("components/landing/image"));
const julia_logo_svg_1 = __importDefault(require("public/features/julia-logo.svg"));
const julia_jupyter_png_1 = __importDefault(require("public/features/julia-jupyter.png"));
const pluto_logo_svg_1 = __importDefault(require("public/features/pluto-logo.svg"));
const pluto_plot_png_1 = __importDefault(require("public/features/pluto-plot.png"));
const julia_nbgrader_png_1 = __importDefault(require("public/features/julia-nbgrader.png"));
const julia_code_png_1 = __importDefault(require("public/features/julia-code.png"));
const component = "Julia";
const title = `Run ${component} Online`;
function Julia({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: title }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "features", subPage: "julia" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { children: [(0, jsx_runtime_1.jsx)("div", { style: { backgroundColor: "#c7d9f5" }, children: (0, jsx_runtime_1.jsx)(content_1.default, { startup: component, logo: julia_logo_svg_1.default, title: title, subtitle: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { children: ["Run ", component, " scripts, ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "", children: "Pluto notebooks" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/jupyter-notebook", children: "Jupyter notebooks" }), " ", "in a full, online environment."] }) }), image: julia_jupyter_png_1.default, alt: "Using Julia in a Jupyter notebook to plot and do symbolic computation" }) }), (0, jsx_runtime_1.jsx)(pitch_1.default, { col1: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("h3", { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "julia" }), " Run", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://julialang.org/", children: "Julia" }), " on CoCalc"] }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Use CoCalc's own realtime collaborative", " ", (0, jsx_runtime_1.jsx)("strong", { children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/jupyter-notebook", children: "Jupyter Notebooks" }) }), "."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Use Julia from the collaborative,", " ", (0, jsx_runtime_1.jsx)("strong", { children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/terminal", children: "Linux Terminal" }) }), " ", "or", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/x11", children: "virtual X11 graphical Linux desktop" }), "."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Easily launch a", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/howto/pluto.html", children: "Pluto.jl notebook server" }), " ", "in your CoCalc project."] })] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("h3", { children: "Packages" }), (0, jsx_runtime_1.jsxs)("div", { children: ["CoCalc includes over 500", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/julia", children: "pre-installed Julia packages," }), " ", "and if something is missing you can", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/howto/install-julia-package.html", children: "easily install more packages." })] })] }), col2: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h3", { children: "Benefits of working with Julia online" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["You no longer have to ", (0, jsx_runtime_1.jsx)("strong", { children: "install and maintain" }), " ", "Julia. In particular when you're", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/teaching", children: "teaching a class" }), ", students just have to sign in to CoCalc to get started!"] }), (0, jsx_runtime_1.jsx)("li", { children: "All your files are private, stored persistently, snapshotted and backed up." }), (0, jsx_runtime_1.jsxs)("li", { children: ["You can invite ", (0, jsx_runtime_1.jsx)("strong", { children: "collaborators" }), " to your project to simultaneously edit the same notebooks or code files."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Everything runs remotely, which means you do not have to worry about messing up your own computer.", " "] })] })] }) }), (0, jsx_runtime_1.jsx)(sign_in_1.default, { startup: component }), (0, jsx_runtime_1.jsx)(info_1.default.Heading, { description: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["There are many ways to use ", component, " online via CoCalc."] }), children: "Feature Overview" }), (0, jsx_runtime_1.jsx)(info_1.default, { title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://github.com/fonsp/Pluto.jl#readme", children: [(0, jsx_runtime_1.jsx)(image_1.default, { src: pluto_logo_svg_1.default, height: 70, width: 250, alt: "the Pluto.jl Logo" }), (0, jsx_runtime_1.jsx)("br", {}), "Use Reactive Notebooks Built for Julia"] }) }), image: pluto_plot_png_1.default, alt: "A screenshot of the Pluto notebook.", anchor: "pluto", children: (0, jsx_runtime_1.jsxs)("p", { children: ["You can use the", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/howto/pluto.html", children: "Pluto.jl notebook server" }), " ", "in any CoCalc project. Pluto is an open source lightweight and reactive notebook written in Julia."] }) }), (0, jsx_runtime_1.jsxs)(info_1.default, { title: "Teach using Julia and Nbgrader", image: julia_nbgrader_png_1.default, alt: "A screenshot using nbgrader with Julia.", anchor: "nbgrader", children: [(0, jsx_runtime_1.jsxs)("p", { children: ["CoCalc's", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/teaching", children: "integrated course management system" }), " ", "fully supports", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/teaching-nbgrader.html", children: "using nbgrader together with Julia" }), " ", "Jupyter Notebooks."] }), (0, jsx_runtime_1.jsx)("p", { children: "We provide custom Julia templates for all the nbgrader cell types." }), (0, jsx_runtime_1.jsx)("p", { children: "Tests run in the student's project, so malicious code won't impact anybody except the student." })] }), (0, jsx_runtime_1.jsxs)(info_1.default, { title: "Collaboratively Edit and Run Julia Code", image: julia_code_png_1.default, alt: "A screenshot involving Julia code, a terminal, and chat.", anchor: "code", children: [(0, jsx_runtime_1.jsx)("p", { children: "CoCalc includes a realtime collaborative Julia code editor with syntax highlighting and code folding." }), (0, jsx_runtime_1.jsx)("p", { children: "You can also run Julia code in a terminal side-by-side the .jl file you are editing." }), (0, jsx_runtime_1.jsx)("p", { children: "In addition, you can chat with other CoCalc users about your code." })] }), (0, jsx_runtime_1.jsx)(snapshots_1.default, {}), (0, jsx_runtime_1.jsx)(sign_in_1.default, { startup: component })] }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] }));
}
exports.default = Julia;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=julia.js.map