import a github into jupyter notebook directly?

后端 未结 2 804
挽巷
挽巷 2021-02-11 06:44

Hey Im creating a jupyter notebook, would like to install:

https://github.com/voice32/stock_market_indicators/blob/master/indicators.py which is a python program

2条回答
  •  -上瘾入骨i
    2021-02-11 07:01

    You can clone the repository from your jupyter notebook using bash. Run in your cell:

    %%bash
    git clone https://github.com/voice32/stock_market_indicators
    

    This will clone the stock_market_indicators repository to your directory.

    You will now be able to access the functions in your indicators.py file. You can import it by running in jupyter:

    %load stock_market_indicators/indicators.py
    

提交回复
热议问题