Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
HELP: running TradingAlgorithm in under quantopian notebook causing error

Whenever I run
TradingAlgorithm( initialize=initialize, handle_data=handle_data ) has error"
HTTPError: HTTP Error 404: Not Found
Does it mean than it does not work in quantopian notebook?

1 response

Yes I have noticed two big differences in imports from research to algorithm mode.

from quantopian.research import run_pipeline

This will only work in research mode.

from quantopian.algorithm import attach_pipeline, pipeline_output

This only works in algorithm mode.

run_pipeline is a way to run the pipeline in research without having to attach it like in algorithm mode. pipeline_output is used in before_trading_start to output the attached pipeline.

I hope this answers your question.