object Python
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Python
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(interpreter: String): Python
- interpreter
path to a Python interpreter executable
- returns
an instance of ai.kien.python.Python which provides the necessary configuration properties for embedding a specific Python interpreter
val python = Python("/usr/local/bin/python3") python.scalapyProperties.get.foreach { case (k, v) => System.setProperty(k, v) } import me.shadaj.scalapy.py println(py.eval("'Hello from Python!'"))
Example: - def apply(interpreter: Option[String] = None): Python
- interpreter
optional path to a Python interpreter executable, which defaults to
Some("python3")if not provided- returns
an instance of ai.kien.python.Python which provides the necessary configuration properties for embedding a specific Python interpreter
val python = Python() python.scalapyProperties.get.foreach { case (k, v) => System.setProperty(k, v) } import me.shadaj.scalapy.py println(py.eval("'Hello from Python!'"))
Example: - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()