8000 Drop notebook 6 by marthacryan · Pull Request #4822 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

Drop notebook 6 #4822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e7b6d7a
Add warning message when notebook version < 7 is used
marthacryan Oct 11, 2024
590a4db
Move files under python/plotly
marthacryan Oct 11, 2024
cd7d587
remove old javascript and fix install
marthacryan Oct 15, 2024
4f2ce95
Remove nbextension
marthacryan Oct 15, 2024
0f16f0c
remove all jupyter extension code
marthacryan Oct 18, 2024
5eff0ca
Merge branch 'anywidget' of github.com:marthacryan/plotly.py into dro…
marthacryan Oct 18, 2024
612ceec
Merge with anywidget branch
marthacryan Oct 22, 2024
cb488ff
Remove npm from release instructions
marthacryan Oct 22, 2024
4096595
Remove more references to jupyterlab-plotly
marthacryan Oct 22, 2024
f8fe306
Merge with anywidget
marthacryan Oct 22, 2024
3f6c8f7
Fix filepath to js bundle in setup.py
marthacryan Oct 23, 2024
5b97f05
Install before running npm build in ci
marthacryan Oct 23, 2024
3b94298
Merge branch 'anywidget' of github.com:plotly/plotly.py into drop-not…
marthacryan Oct 23, 2024
513798b
Remove npm pack of jupyterlab extension
marthacryan Oct 23, 2024
39e65af
Merge branch 'anywidget' of github.com:plotly/plotly.py into drop-not…
marthacryan Oct 23, 2024
25cbf52
Merge branch 'anywidget' of github.com:plotly/plotly.py into drop-not…
marthacryan Oct 23, 2024
8e3354d
Update path of bundle in setup.py
marthacryan Oct 23, 2024
60cc98f
update contributing to include new build instructions
marthacryan Oct 25, 2024
3d2a234
Merge branch 'anywidget' of github.com:plotly/plotly.py into drop-not…
marthacryan Oct 28, 2024
4759697
Merge with anywidget
marthacryan Oct 30, 2024
f6f2691
Remove more references to old jupyter support from README
marthacryan Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ jobs:
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_38_core.txt black inflect
pip install jupyterlab~=3.0
pip install jupyterlab
- run:
name: Update jupyterlab-plotly and jupyter widget plotly.js version
name: Update jupyter widget plotly.js version
command: |
cd packages/python/plotly
. venv/bin/activate
Expand Down Expand Up @@ -398,7 +398,7 @@ jobs:
conda config --remove channels defaults
conda config --add channels conda-forge
conda create -n env --yes python=3.9 conda-build=3.28.4 conda-verify
conda install -n env -c conda-forge jupyterlab=3 nodejs=16
conda install -n env -c conda-forge jupyterlab nodejs=16
conda init bash
mkdir output

Expand All @@ -407,13 +407,10 @@ jobs:
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/javascript/jupyterlab-plotly
npm ci
npm run build:prod

cd ../../python/plotly/js
cd packages/python/plotly/js
npm install
npm run build
git status

- run:
name: PyPI Build
Expand All @@ -440,9 +437,9 @@ jobs:
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/javascript/jupyterlab-plotly
npm pack
mv jupyterlab-plotly*.tgz ../../../output
cd packages/python/plotly/js
npm install
npm run build

- run:
name: Zip output
Expand Down
65 changes: 7 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@
</a>
</div>


## Quickstart

`pip install plotly==5.24.1`

Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`):

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
Expand All @@ -52,7 +49,6 @@ fig.show()

See the [Python documentation](https://plotly.com/python/) for more examples.


## Overview

[plotly.py](https://plotly.com/python/) is an interactive, open-source, and browser-based graphing library for Python :sparkles:
Expand Down Expand Up @@ -82,7 +78,7 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is

## Installation

plotly.py may be installed using pip...
plotly.py may be installed using pip

```
pip install plotly==5.24.1
Expand All @@ -94,43 +90,19 @@ or conda.
conda install -c plotly plotly=5.24.1
```

### JupyterLab Support
### Jupyter Widget Support

For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets`
For use as a Jupyter widget, install `jupyter` and `anywidget`
packages using `pip`:

```
pip install "jupyterlab>=3" "ipywidgets>=7.6"
pip install jupyter anywidget
```

or `conda`:

```
conda install "jupyterlab>=3" "ipywidgets>=7.6"
```

The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**, run the following commands to install the required JupyterLab extensions (note that this will require [`node`](https://nodejs.org/) to be installed):

```
# JupyterLab 2.x renderer support
jupyter labextension install jupyterlab-plotly@5.24.1 @jupyter-widgets/jupyterlab-manager
```

Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.

### Jupyter Notebook Support

For use in the Jupyter Notebook, install the `notebook` and `ipywidgets`
packages using `pip`:

```
pip install "notebook>=5.3" "ipywidgets>=7.5"
```

or `conda`:

```
conda install "notebook>=5.3" "ipywidgets>=7.5"
conda install jupyter anywidget
```

### Static Image Export
Expand All @@ -143,41 +115,18 @@ command line utility (legacy as of `plotly` version 4.9).
#### Kaleido

The [`kaleido`](https://github.com/plotly/Kaleido) package has no dependencies and can be installed
using pip...
using pip

```
pip install -U kaleido
```

or conda.
or conda

```
conda install -c conda-forge python-kaleido
```

#### Orca

While Kaleido is now the recommended image export approach because it is easier to install
and more widely compatible, [static image export](https://plotly.com/python/static-image-export/)
can also be supported
by the legacy [orca](https://github.com/plotly/orca) command line utility and the
[`psutil`](https://github.com/giampaolo/psutil) Python package.

These dependencies can both be installed using conda:

```
conda install -c plotly plotly-orca==1.3.1 psutil
```

Or, `psutil` can be installed using pip...

```
pip install psutil
```

and orca can be installed according to the instructions in the [orca README](https://github.com/plotly/orca).


### Extended Geo Support

Some plotly.py features rely on fairly large geographic shape files. The county
Expand Down
11 changes: 9 additions & 2 deletions contributing.md