Learn how to run code in your NikaWorkspace notebooks with multiple execution methods, streaming output, and powerful debugging features. Code execution is streamed from the kernel, allowing you to close the workspace and return later to see results.
# Example: Long-running analysisimport timeimport pandas as pd# Load large datasetprint("Loading large dataset...")data = pd.read_parquet('/workspace/data/massive_dataset.parquet')# Process data in chunksprint("Processing data...")for i in range(100): chunk = data[i*1000:(i+1)*1000] # Complex processing here time.sleep(1) # Simulate processing time print(f"Processed chunk {i+1}/100")print("Analysis complete!")
# Install required libraries!pip install earthengine-api geemap geopandas# Libraries are installed and ready to useimport eeimport geemapimport geopandas as gpd
try: # Attempt to load data data = pd.read_csv('/workspace/data/missing_file.csv')except FileNotFoundError as e: print(f"Error: {e}") print("Please check if the file exists in the workspace")