https://dagster.io/ logo
#ask-community
Title
# ask-community
d

David Gasquez

08/11/2023, 12:28 PM
Hey there! 👋 This is probably a silly question but I'm wondering about other people development workflow when working on a Dagster
@asset
. I realized mine is not very good as I'll work on it mostly on ipython, then copy the code to the
assets.py
file and run the asset job from Dasgter UI. I'm sure there are better ways (breakpoints, alternatives, ...). Please share!
This came up while working on pulling data from a remote and very slow API. I started to write the asset code and wanted an interactive environment to see the response and parse it to a DataFrame. Ended up copying to a notebook to figure things out iteratively and then back to the
assets.py
file.
l

Liam Pieri

08/11/2023, 2:20 PM
First you could start developing in the
@asset
with the Dagster UI, it's slower but at least you won't have to transition. To skip the UI you could do unit tests and do TDD. Finally, if you really wanted to develop loosely for a long time, you could us https://docs.dagster.io/integrations/dagstermill/using-notebooks-with-dagster
🌈 1
d

David Gasquez

08/11/2023, 2:21 PM
Thought on going the Notebook route but was wondering if there are ways to stay in VSCode and use breakpoints or other magic to "pause" the execution and have a live interpreter to debug and edit things
l

Liam Pieri

08/11/2023, 2:47 PM
Yeah I guess that's not available (I don't use it but was looking into it today for my company)
Seems complicated to me - you'd have to link your juptyer kernel to dagsters job runner.
I think your best bet would be to use the IO_Managers in your notebook to access the desired asset with
asset_key
d

David Gasquez

08/11/2023, 2:53 PM
yep, thats what I'll end up doing
🌈 1
t

Tim Castillo

08/11/2023, 3:06 PM
If you want to throw a debugger on, this is an example of how you can configure your VS Code to enable that https://github.com/dagster-io/dagster/discussions/10946
d

David Gasquez

08/11/2023, 3:26 PM
Ahhh, now we're talking 👌
Will try that tomorrow
3 Views