All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.jupyter.config.Defaults.kt Maven / Gradle / Ivy

Go to download

Implementation of REPL compiler and preprocessor for Jupyter dialect of Kotlin (IDE-compatible)

There is a newer version: 0.12.0-333
Show newest version
package org.jetbrains.kotlinx.jupyter.config

import org.jetbrains.kotlinx.jupyter.api.libraries.KernelRepository
import org.jetbrains.kotlinx.jupyter.repl.MavenRepositoryCoordinates

private val dateTimeImports =
    listOf(
        "nanoseconds",
        "microseconds",
        "milliseconds",
        "seconds",
        "minutes",
        "hours",
        "days",
    ).map { "kotlin.time.Duration.Companion.$it" }

val defaultGlobalImports =
    buildList {
        add("kotlin.math.*")
        add("jupyter.kotlin.*")
        add("org.jetbrains.kotlinx.jupyter.api.*")
        add("org.jetbrains.kotlinx.jupyter.api.libraries.*")
        add("org.jetbrains.kotlinx.jupyter.api.outputs.*")
        addAll(dateTimeImports)
    }

val defaultRepositories =
    listOf(
        "https://repo.maven.apache.org/maven2/",
        "https://jitpack.io/",
    ).map(::KernelRepository)
val defaultRepositoriesCoordinates = defaultRepositories.map { MavenRepositoryCoordinates(it.path) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy