Trait

almond.interpreter

Interpreter

Related Doc: package interpreter

Permalink

trait Interpreter extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interpreter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def currentLine(): Int

    Permalink

    Current line count.

    Current line count.

    Should be increased each time execute is called with store_history set to true.

  2. abstract def execute(code: String, storeHistory: Boolean = true, inputManager: Option[InputManager] = None, outputHandler: Option[OutputHandler] = None): ExecuteResult

    Permalink

    Executes some code.

    Executes some code.

    returns

    resulting ExecuteResult

  3. abstract def kernelInfo(): KernelInfo

    Permalink

    KernelInfo of this kernel.

    KernelInfo of this kernel.

    Sent to frontends via a kernel_info_reply each time a kernel_info_request is received.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asyncComplete(code: String, pos: Int): Option[CancellableFuture[Completion]]

    Permalink

    Asynchronously try to complete code.

    Asynchronously try to complete code.

    This is normally called before complete(). If this returns a non-empty option, it is assumed asynchronous completions are supported. Else, complete() is called.

  6. def asyncInspect(code: String, pos: Int, detailLevel: Int): Option[CancellableFuture[Option[Inspection]]]

    Permalink

    Asynchronously try to inspect code.

    Asynchronously try to inspect code.

    This is normally called before inspect(). If this returns a non-empty option, it is assumed asynchronous inspections are supported. Else, inspect() is called.

  7. def asyncIsComplete(code: String): Option[CancellableFuture[Option[IsCompleteResult]]]

    Permalink

    Asynchronously try to check whether some code is complete.

    Asynchronously try to check whether some code is complete.

    This is normally called before isComplete(). If this returns a non-empty option, it is assumed asynchronous completion checks are supported. Else, isComplete() is called.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def complete(code: String): Completion

    Permalink

    Tries to complete code.

  10. def complete(code: String, pos: Int): Completion

    Permalink

    Tries to complete code.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def init(): Unit

    Permalink

    Performs any heavyweight initialization.

  17. final def inspect(code: String, pos: Int): Option[Inspection]

    Permalink

  18. def inspect(code: String, pos: Int, detailLevel: Int): Option[Inspection]

    Permalink

  19. def interrupt(): Unit

    Permalink

    Interrupts the kernel, likely when execute or complete are running.

  20. def interruptSupported: Boolean

    Permalink

    Whether this kernel can be interrupted via a call to interrupt.

  21. def isComplete(code: String): Option[IsCompleteResult]

    Permalink

    Whether the passed code is complete.

    Whether the passed code is complete.

    Mostly used by jupyter console, to know whether the code entered should be evaluated or a new prompt should be displayed for the entered code to be completed.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def setCommHandler(commHandler: CommHandler): Unit

    Permalink

    Provides a CommHandler that this kernel can use to send custom messages to the frontend.

    Provides a CommHandler that this kernel can use to send custom messages to the frontend.

    Called prior to any call to execute, if and only if supportComm is true.

    See CommHandler for more details about custom messages.

  27. def shutdown(): Unit

    Permalink

    Called in response to a shutdown message, before a reply has been sent.

  28. def supportComm: Boolean

    Permalink

    Whether this kernel handles custom messages (see CommHandler).

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped