import a github into jupyter notebook directly?
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
Ney J Torres
A Serial Entrepreneur with a dual Masters degree in Real Estate Development and Brokerage Management from Spain’s Polytechnic University and Ecuador’s San Francisco of Quito University, as well as undergraduate degrees in both Finance and Business Administration. Currently developing over 500 properties in Ecuador. http://www.huffingtonpost.com/richard-lorenzen/evolving-as-an-entreprene_b_6092644.html
Updated on June 26, 2022Comments
-
Ney J Torres almost 2 years
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
not sure how to do it directly so anybody that dowloads the notebook can just hit "Run All", and see the results
option 1) do something like: from https://github.com/voice32/stock_market_indicators/blob/master/indicators.py import indicators.py
of course this doesn't work
-
Ney J Torres over 5 yearsCouldn't find program: 'bash' . any suggestions to installed from notebook?
-
Ney J Torres over 5 yearsmaybe some other command besides bash? seem that windows can do it.