This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
Your Code Workbook has a set of expandable panels:
Contents - When in Graph mode, the Contents pane, located on the left side of your screen, shows you a list of all datasets in the graph.
Console - Available at the top of the right sidebar, the console provides a REPL (read-evaluate-print loop), enabling rapid, ad-hoc analysis of any dataset on the graph. The Console enables experimentation with logic before promoting it to the graph.
Global Code - The "globe" icon on your right sidebar opens the Global Code panel. Here, you can define code that executes before each code transform in your Workbook. You can use global code to define constants that will be used in multiple transforms or define helper functions you want to use repeatedly, such as import statements.
🔨 Task Instructions
Click on the Global Code globe icon near the right side of your screen.