Hi,
Iâm exploring the free version of viktor.ai and wanted to incorporate plotly, but no matter what I do I always get the error âModuleNotFoundError: No module named âplotlyââ.
How can I solve this?
Thanks, Ana
Hi,
Iâm exploring the free version of viktor.ai and wanted to incorporate plotly, but no matter what I do I always get the error âModuleNotFoundError: No module named âplotlyââ.
How can I solve this?
Thanks, Ana
Hi Ana,
Welcome to this Community Forum! Thank you for posting.
Since plotly is a separate python package, this will need to be explicitly installed along with the VIKTOR package. Please see: VIKTOR docs - Use other Python Packages, for more information on this.
In summary, what youâll need to do to be able to use any additional python package in your VIKTOR app:
requirements.txt
file (I advise you to âpinâ the version)viktor-cli install
Please let us know if that solves your problem.
Thank you! It worked
ok i see, it works now. i should save the requirements.txt before installing.
Hi, Thanks for posting.
Did you know that it is possible to enable âautosaveâ in VScode? This makes developing with VIKTOR much more convenient. Since VIKTOR picks up changes in files automatically when the file is saved.
More information can be found here: Basic Editing in Visual Studio Code