How to use the Bolt Python library in your code?


#1

I have already installed anconda software, and running codes on jupiter. do we still need to download python library for windows 10, as while writing the code in bolt app there are jst 2 extensions available that is html and js.

The mail which you send sir, its giving error so I cant work further.
Please can you guide.??


#2

Hey @pednekarruchika

Hope you’re doing good.

From what I have understood, your code is not communicating with bolt cloud via the Bolt API. To do that, you will have to install the “boltiot” python library on your python/Anaconda installation for window 10. I have a similar setup where I have installed Python 2.7.8, using the PyCharm IDE on Windows 10. I searched and installed the “boltiot” package within the PyCharm IDE which later I have imported in the code. And the Project worked without any glitch.

Hope this helps.

Have a good day. :slight_smile:


#3

Can you please share the link to install?


#4

Hey @pednekarruchika,

Apologies for the delay in reply. Here’s the link I used to install python packages in PyCharm
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html

And here is a link I found for your setup which might be useful.
https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/

As per the article, since you’re in the jupyter notebook and you want to install a package with conda, I’d suggest you to try installing the package as follows;

Install a conda package in the current Jupyter kernel

import sys
!conda install --yes --prefix {sys.prefix} boltiot

See if this helps.