Back to Community
Debugging within the Research Environment

I'm having difficulty trying to figure out how to run a debugger from within a Quantopian Research Environment notebook. Perhaps, it is because I'm new to working with Ipython notebooks. It appears to me that some of the capabilities of Ipython may not available within the research environment. Is that true?

I'm trying to port my code to zipline within the research environment to speed up backtesting and development. I was also hoping to have use of an enhanced debug environment.

I'm aware of some of the API incompatibilities between the IDE and zipline in the research environment. I've ported a simple test algorithm already. So, that isn't an issue.

Can anyone nudge me in the proper direction? I can research the details if someone can just aim me in the right direction.

2 responses

Hi Rob,

You're right that there isn't a native debugger in research and that not all IPython capabilities are available (for security reasons). If you're having trouble working through some code in the notebook, try printing the information. This will expose more about the objects, variables, and structures. It's similar to logging (or well, printing ;) ) in the IDE.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

@Alisa

Thanks for the reply. I've already been "print" debugging along with a few other workarounds. I was just hoping that access to a real debugger was available. Hopefully this item is on the wish list for the future.