froggleston/freqtrade_analysis_notebook

quick hack to keep the notebook in user_data/notebooks

vaidab opened this issue · 4 comments

vaidab commented

Since Freqtrade already has a directory for jupyter notebooks in user_data/notebooks, I would recommend using this hack after the imports to be able to run freqtrade_analysis_notebook from that directory, instead of leaving it in the base freqtrade folder.

import os
os.chdir("/freqtrade/")

The problem with this is that there's no guarantee, depending on how you've "installed" the notebook (e.g. leaving it in the cloned freqtrade_analysis_notebook directory), that the /freqtrade/ folder exists....

vaidab commented

"Fixed" in the last patch. I've changed the cd to os.chdir + explained in comments to use /freqtrade in case of docker.

Please don't close issues before any PR review or acceptance.

Added support and comments for keeping the notebook and helper scripts in a cloned repo or copying to the main ft folder: 7d8873e