We have all heard about Python. It is a programming language used in algorithmic trading. Let me introduce you to Jupyter. Refer – https://jupyter.org
Previously it was known as iPython where You can write step by step code and it was executed in step by step method giving you a broad perspective on what to change or modify and more importantly, where is the mistake.
Later it spun off as Project Jupyter which now supports execution environments for few dozen languages.
Head here – python.org
Then browse around to download the latest version of Python. Note although my image currently shows How I got it, Some of you will be reading this after a couple of years too. Just browse around, Download, Install it.
Also, You can take the help of Google if You’re slight more novice, Just Youtube install python windows
While installing, You must make sure that Python is added to the Environment Path. For that, You need to click “tick” in the first dialog. (It is not ticked by default.) If you have already installed it, don’t worry, just reinstall it and this time make sure its “ticked”.
Now, PIP allows you to install pre-written, well packaged codes written by other users. Like Krishna Velu wrote the code for Aliceblue’s API Wrapper which you can see here – https://github.com/krishnavelu/alice_blue
So, PIP is a package management system.
Q. Then, How to use (install) a project like https://github.com/krishnavelu/alice_blue without PIP?
Most authors follow the same protocols of Python Package Index (PyPI – You can read more here https://pypi.org/) while developing python projects. So, to install it manually, download the code.
Now using the command prompt of windows,
python setup.py
.pip install alice_blue
to install it. pip uninstall alice_blue
Now, How to install PIP in Windows? Follow this article – https://phoenixnap.com/kb/install-pip-windows
Official Instruction – https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip (It is written in more “lawyerish” language)
Now that you have Python and PIP installed, All you need to do is open command prompt.
Then type pip install notebook
You have installed Jupyter Notebook! To run the notebook, run the following command at command prompt.
Type jupyter notebook
It will open your browser and show you something like this –
pip install nsepython
from CMD, You can do that directly from here. Type pip install nsepython
and then click on the Run button as marked here.
As it was already installed in my system, it is writing “Already exists” in the output.
Now head here – https://forum.unofficed.com/t/nsepython-documentation/376
I have practiced the first command.
from nsepython import *
print(indices)
And I clicked on Run.
Note 1: Make sure you have latest version of nsepython if not then
Note 2: The DEBUG
is harmless. It basically shows what is being fetched. You can remove it by doing –
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)