Prism
v0.3.0
v0.3.0
  • 👋Welcome to Prism!
  • Getting Started
    • Installation
    • Creating your first project
    • Why Prism?
  • Fundamentals
    • PrismProject API
      • PrismProject().run
      • PrismProject().graph
    • Tasks
    • Targets
      • Multiple targets
    • CurrentRun API
      • CurrentRun.ref()
      • CurrentRun.conn()
      • CurrentRun.ctx()
  • Connectors
    • Overview
    • BigQueryConnector
    • PostgresConnector
    • RedshiftConnector
    • SnowflakeConnector
    • TrinoConnector
    • PrestoConnector
  • CLI
    • Command Line Interface
    • graph
    • init
    • run
  • Advanced features
    • Concurrency
    • Logging
    • Callbacks
    • Retries
    • Skipping tasks
  • API Reference
    • prism.task.PrismTask
    • @task(...)
    • @target(...)
    • @target_iterator(...)
    • prism.target.PrismTarget
  • Use Cases
    • Analytics on top of dbt
    • Machine Learning
  • Wiki
    • DAGs
Powered by GitBook
On this page
  1. Fundamentals
  2. PrismProject API

PrismProject().graph

Overview

The graph method is used to display Prism projects as a network of nodes and edges (i.e., a graph). Here is the method definition for PrismProject.graph():

PrismProject.graph(
    port: int = 8000,
    open_window: bool = True,
    hot_reload: bool = True,
    log_level: Literal["info", "warning", "error", "debug", "critical"] = "info",
)
Argument
Description

port

port on which to launch the webserver. Default is 8000.

open_window

boolean controlling whether to opne a new window in your default browser. Default is True.

hot_reload

boolean controlling whether to listen to changes the project task directory. Default is True.

log_level

logging level, one of info, warn, error, debug, or critical.

Here's what the the visualizer UI looks like:

[ TO DO ]

PreviousPrismProject().runNextTasks

Last updated 1 year ago