Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Help - Getting Started

Hi,
I am new to Python and am trying to find my way around.
I am using Python 3.7 (Anaconda | Individual Edition)

I want to use Plotly, but I already fail at the Getting Started sequence.
Either installation steps (Getting Started with Plotly | Python | Plotly) in my Jupyter notebook

Installation

plotly may be installed using pip…

$ pip install plotly==4.9.0

or conda.

$ conda install -c plotly plotly=4.9.0

Cause error messages:
File “”, line 1
$ pip install plotly==4.9.0
^
SyntaxError: invalid syntax

File “”, line 1
$ conda install -c plotly plotly=4.9.0
^
SyntaxError: invalid syntax

What am I doing wrong?

The pip install ... commands are meant to be ran in a command prompt, such as the bash in Unix or cmd or powershell in Windows. To me, this error looks like the commands have been tried to be ran with python interpreter somehow. How exactly did you get these errors?

Try pip install Plotly… Or Conda install…
Without the $ symbol at the beginning

I ran the commands in a Jupyter Notebook (Anaconda) running Python 3.7.

pip install plotly worked.
Thank you

@strued_78 if you want to see a tutorial on how to use Dash in JupyterLab, see here.
JupyterDash allows you to code very conveniently.