Authenticating in Jupyter Notebook #179
-
Hi. I've pip installed td-ameritrade-python-api into a jupyter notebook and was trying to follow the instructions for authenticating from the pypi site. Unfortunately, the instructions seemed to have in mind the use of an entire python script and terminal. Is there a way to authenticate from jupyter notebook? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If you are using VS code you can use the Python interactive mode which essentially turns your code into a Jupiter notebook |
Beta Was this translation helpful? Give feedback.
-
I was able to do that, but when I try to run some simple functions of the library, it returns None. For example: Based on reading other "Issues" in this github, I think it has to do with the manual reauthentication(copying the redirect url from the search bar) but the instructions for it only work for a terminal... |
Beta Was this translation helpful? Give feedback.
-
Nevermind. I believe I solved it. I just looked at the code, and manually used the 'oath' function in the notebook. Then I followed the instructions of taking the url and putting it into the input() bar in order for the function to parse through it. |
Beta Was this translation helpful? Give feedback.
Nevermind. I believe I solved it. I just looked at the code, and manually used the 'oath' function in the notebook. Then I followed the instructions of taking the url and putting it into the input() bar in order for the function to parse through it.