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

polynote.kernel.environment.package.scala Maven / Gradle / Ivy

There is a newer version: 0.4.4
Show newest version
package polynote.kernel

import cats.effect.concurrent.Ref
import fs2.Stream
import polynote.app.{Args, MainArgs}
import polynote.config.PolynoteConfig
import polynote.kernel.util.Publish
import polynote.messages.{Message, Notebook, NotebookUpdate}
import polynote.runtime.KernelRuntime
import zio.{Has, Task, ZLayer}

package object environment {

  type Config = Has[PolynoteConfig]
  type PublishStatus = Has[Publish[Task, KernelStatusUpdate]]
  type PublishResult = Has[Publish[Task, Result]]
  type PublishMessage = Has[Publish[Task, Message]]
  type CurrentRuntime = Has[KernelRuntime]
  type CurrentNotebook = Has[NotebookRef]
  type NotebookUpdates = Has[Stream[Task, NotebookUpdate]]

  type CurrentTask = Has[Ref[Task, TaskInfo]]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy