Skip to content

Commit 7330dd2

Browse files
committed
📝 Switch from pipenv to uv
* Remove outdated voila-debug
1 parent 27c6528 commit 7330dd2

31 files changed

+180
-336
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
),
161161
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
162162
"nbsphinx": ("https://nbsphinx.readthedocs.io/en/0.4.2/", None),
163-
"pipenv": ("https://pipenv.pypa.io/en/latest/", None),
164163
"spack": ("https://spack-tutorial.readthedocs.io/en/latest/", None),
165164
"ipyparallel": ("https://ipyparallel.readthedocs.io/en/latest/", None),
166165
"bokeh": ("https://docs.bokeh.org/en/latest", None),

docs/dashboards/appmode/index.rst

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,11 @@ For the Jupyter service ``appmode`` must be installed with
2727

2828
.. code-block:: console
2929
30-
$ pipenv install appmode
31-
Installing appmode…
32-
Collecting appmode
33-
34-
Installing collected packages: appmode
35-
Successfully installed appmode-0.6.0
36-
Adding appmode to Pipfile's [packages]…
37-
Locking [dev-packages] dependencies…
38-
Locking [packages] dependencies…
39-
Updated Pipfile.lock (ea9a56)!
40-
Installing dependencies from Pipfile.lock (ea9a56)…
41-
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 128/128 — 00:09:58
42-
43-
$ pipenv run jupyter nbextension enable --py --sys-prefix appmode
30+
$ uv add appmode
31+
$ uv run jupyter nbextension enable --py --sys-prefix appmode
4432
Enabling notebook extension appmode/main...
4533
- Validating: OK
46-
$ pipenv run jupyter serverextension enable --py --sys-prefix appmode
34+
$ uv run jupyter serverextension enable --py --sys-prefix appmode
4735
Enabling: appmode.server_extension
4836
- Writing config: /Users/veit/.local/share/virtualenvs/jupyter-tutorial--q5BvmfG/bin/../etc/jupyter
4937
- Validating...

docs/dashboards/jupyter-dashboards/install.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ Installation of Jupyter dashboards
33

44
.. code-block:: console
55
6-
$ pipenv install jupyter_dashboards
7-
Installing jupyter_dashboards…
8-
9-
$ pipenv run jupyter dashboards quick-setup --sys-prefix
6+
$ uv add jupyter_dashboards
7+
$ uv run jupyter dashboards quick-setup --sys-prefix
108
119
Enabling notebook extension jupyter_dashboards/notebook/main...
1210
- Validating: OK
13-
$ pipenv run jupyter nbextension enable jupyter_dashboards --py --sys-prefix
11+
$ uv run jupyter nbextension enable jupyter_dashboards --py --sys-prefix
1412
Enabling notebook extension jupyter_dashboards/notebook/main...
1513
- Validating: OK

docs/dashboards/jupyter-flex/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ Installation
3535

3636
.. code-block:: console
3737
38-
$ pipenv install jupyter-flex
38+
$ uv add jupyter-flex

docs/dashboards/panel/deploy.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@
23992399
"\n",
24002400
"Panel (and Bokeh) provide a CLI command to deploy a Python script, app directory, or Jupyter notebook with a Bokeh or Panel app. To start a server using the CLI, simply do the following:\n",
24012401
"\n",
2402-
" $ pipenv run panel serve app.ipynb\n",
2402+
" $ uv run panel serve app.ipynb\n",
24032403
"\n",
24042404
"To turn a notebook into a deployable app, simply attach to one or more panel objects `.servable()`, which adds the app to bokehs `curdoc`. This makes it easy to create dashboards interactively in a notebook and then seamlessly provide them to the Bokeh server."
24052405
]
@@ -2581,7 +2581,7 @@
25812581
"To export the `png` file you also need Selenium and PhantomJS:\n",
25822582
"\n",
25832583
"```bash\n",
2584-
"$ pipenv install selenium\n",
2584+
"$ uv add selenium\n",
25852585
"Installing selenium…\n",
25862586
"\n",
25872587
"$ npm install -g phantomjs-prebuilt\n",

docs/dashboards/panel/install.rst

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,15 @@ You can install Panel in the virtual environment of your Jupyter kernel with:
55

66
.. code-block:: console
77
8-
$ pipenv install panel
9-
Installing panel…
10-
Collecting panel
11-
12-
Installing collected packages: param, pyviz-comms, pyct, markdown, bokeh, panel
13-
Successfully installed bokeh-1.3.4 markdown-3.1.1 panel-0.6.2 param-1.9.1 pyct-0.4.6 pyviz-comms-0.7.2
14-
8+
$ uv add panel
159
1610
For some of the following examples additional packages are required such as
1711
`Holoviews <https://holoviews.org/>`_ and `hvPlot
1812
<https://hvplot.holoviz.org/>`_. They can be installed with:
1913

2014
.. code-block:: console
2115
22-
$ pipenv install "holoviews[recommended]"
23-
Installing holoviews[recommended]…
24-
25-
Installing collected packages: param, pyviz-comms, kiwisolver, cycler, pyparsing, matplotlib, pyct, markdown, packaging, bokeh, panel, holoviews
26-
Successfully installed bokeh-1.3.4 cycler-0.10.0 holoviews-1.12.5 kiwisolver-1.1.0 markdown-3.1.1 matplotlib-3.1.1 packaging-19.1 panel-0.6.2 param-1.9.1 pyct-0.4.6 pyparsing-2.4.2 pyviz-comms-0.7.2
27-
28-
$ pipenv install hvplot
29-
Installing hvplot…
30-
Collecting hvplot
31-
32-
Installing collected packages: hvplot
33-
Successfully installed hvplot-0.4.0
34-
16+
$ uv add "holoviews[recommended hvplot
3517
3618
Examples
3719
--------
@@ -40,7 +22,7 @@ Examples
4022

4123
.. code-block:: console
4224
43-
$ pipenv run panel sampledata
25+
$ uv run panel sampledata
4426
Creating /Users/veit/.bokeh/data directory
4527
Using data directory: /Users/veit/.bokeh/data
4628
Fetching 'CGM.csv'
@@ -54,7 +36,7 @@ Examples
5436

5537
.. code-block:: console
5638
57-
$ pipenv run panel serve panel-examples/getting_started/Introduction.ipynb
39+
$ uv run panel serve panel-examples/getting_started/Introduction.ipynb
5840
2019-08-18 10:55:44,056 Starting Bokeh server version 1.3.4 (running on Tornado 6.0.3)
5941
2019-08-18 10:55:44,067 Bokeh app running at: http://localhost:5006/Introduction
6042
2019-08-18 10:55:44,067 Starting Bokeh server with process id: 86677

docs/dashboards/panel/overview.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@
12371237
"source": [
12381238
"This will start the Panel server and open a browser window with the application.\n",
12391239
"\n",
1240-
"Or you can just indicate what you want to see on the website. `servable()`, and then the shell command to start a server with this object `pipenv run panel serve --show example.ipynb`:"
1240+
"Or you can just indicate what you want to see on the website. `servable()`, and then the shell command to start a server with this object `uv run panel serve --show example.ipynb`:"
12411241
]
12421242
},
12431243
{

docs/dashboards/panel/pyodide/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
187187
# Dies startet den Bokeh-Server und öffnet ein Browser-Fenster mit der Anwendung.
188188
#
189-
# Oder ihr könnt einfach angeben, was ihr auf der Webseite sehen möchtet. \`servable()\`, und dann den Shell-Befehl \`pipenv run panel serve --show example.ipynb\`, um einen Server mit diesem Objekt zu starten:
189+
# Oder ihr könnt einfach angeben, was ihr auf der Webseite sehen möchtet. \`servable()\`, und dann den Shell-Befehl \`uv run panel serve --show example.ipynb\`, um einen Server mit diesem Objekt zu starten:
190190
191191
# In[17]:
192192

docs/dashboards/voila/install.rst

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ voilà can be installed with:
88

99
.. code-block:: console
1010
11-
$ pipenv install voila
12-
Installing voila...
13-
...
11+
$ uv add voila
1412
1513
Start
1614
-----
@@ -22,7 +20,7 @@ You can check the installation, e.g. with:
2220

2321
.. code-block:: console
2422
25-
$ pipenv run voila docs/dashboards/voila/bqplot_vuetify_example.ipynb
23+
$ uv run voila docs/dashboards/voila/bqplot_vuetify_example.ipynb
2624
...
2725
[Voila] Voilà is running at:
2826
http://localhost:8866/
@@ -38,8 +36,7 @@ contains:
3836

3937
.. code-block:: console
4038
41-
$ pipenv run voila docs/dashboards/voila
42-
...
39+
$ uv run voila docs/dashboards/voila
4340
4441
.. image:: voila-example-2.png
4542
:alt: Voilà example of a directory view
@@ -48,8 +45,7 @@ It is also possible to display the source code with:
4845

4946
.. code-block:: console
5047
51-
$ pipenv run voila --strip_sources=False docs/dashboards/voila/bqplot_vuetify_example.ipynb
52-
...
48+
$ uv run voila --strip_sources=False docs/dashboards/voila/bqplot_vuetify_example.ipynb
5349
5450
.. note::
5551
Note that the code is only displayed. Voilà does not allow users to edit or
@@ -63,8 +59,7 @@ theme:
6359

6460
.. code-block:: console
6561
66-
$ pipenv run voila --theme=dark docs/dashboards/voila/bqplot_vuetify_example.ipynb
67-
...
62+
$ uv run voila --theme=dark docs/dashboards/voila/bqplot_vuetify_example.ipynb
6863
6964
… as an extension of the Jupyter server
7065
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -73,8 +68,7 @@ Alternatively you can start voilà as an extension of the Jupyter server:
7368

7469
.. code-block:: console
7570
76-
$ pipenv run jupyter notebook
77-
...
71+
$ uv run jupyter notebook
7872
7973
Then you can call up voilà, e.g. under the URL
8074
``http://localhost:8888/voila``.

docs/dashboards/voila/templating.rst

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Installation
3131

3232
.. code-block:: console
3333
34-
$ pipenv install bqplot ipyvuetify voila-vuetify
34+
$ uv add bqplot ipyvuetify voila-vuetify
3535
3636
Usage
3737
~~~~~
@@ -83,7 +83,7 @@ You can use :doc:`bqplot_vuetify_example` with:
8383

8484
.. code-block:: console
8585
86-
$ pipenv run voila --template vuetify-default bqplot_vuetify_example.ipynb
86+
$ uv run voila --template vuetify-default bqplot_vuetify_example.ipynb
8787
8888
Then your standard browser will open the URL ``http://localhost:8866/`` and show
8989
you the plots in Responsive Material Design.
@@ -98,53 +98,6 @@ Example for Voilà-vuetify with the monitor resolution of an iPhone X:
9898
.. image:: voila-vuetify-iphone.png
9999
:scale: 53%
100100

101-
voila-debug
102-
-----------
103-
104-
`voila-debug <https://github.com/voila-dashboards/voila-debug>`_ is a template
105-
for displaying debug information when working on Voilà applications.
106-
107-
Installation
108-
~~~~~~~~~~~~
109-
110-
.. code-block:: console
111-
112-
$ pipenv install voila-debug
113-
114-
Usage
115-
~~~~~
116-
117-
You can use the template :doc:`debug` with:
118-
119-
.. code-block:: console
120-
121-
$ pipenv run voila --template=debug --VoilaExporter.template_file=debug.tpl
122-
123-
This will open your default browser with the URL ``localhost:8866``.
124-
125-
Then you can take a closer look at how it works at
126-
``http://localhost:8866/voila/render/docs/dashboards/voila/debug.ipynb``.
127-
128-
.. image:: voila-debug.png
129-
:scale: 53%
130-
:alt: Example of voila-debug
131-
132-
In addition to an example widget, it contains a code cell for exiting the
133-
kernel:
134-
135-
.. code-block:: python
136-
137-
import os
138-
139-
140-
def kill_kernel(change):
141-
os._exit(0)
142-
143-
144-
button = widgets.Button(description="Kill Kernel")
145-
button.on_click(kill_kernel)
146-
button
147-
148101
voila-reveal
149102
------------
150103

@@ -156,7 +109,7 @@ Installation
156109

157110
.. code-block:: console
158111
159-
$ pipenv install voila-reveal
112+
$ uv add voila-reveal
160113
161114
Usage
162115
~~~~~
@@ -165,14 +118,14 @@ You can use the template with:
165118

166119
.. code-block:: console
167120
168-
$ pipenv run voila --template=reveal reveal.ipynb
121+
$ uv run voila --template=reveal reveal.ipynb
169122
170123
Additional options can be used to override the default settings, for example to
171124
change the default value for transition ``Fade`` to ``Zoom`` with:
172125

173126
.. code-block:: console
174127
175-
$ pipenv run voila --template=reveal --VoilaConfiguration.resources="{'reveal': {'transition': 'zoom'}}" reveal.ipynb
128+
$ uv run voila --template=reveal --VoilaConfiguration.resources="{'reveal': {'transition': 'zoom'}}" reveal.ipynb
176129
177130
If configuration options are to be saved permanently, a ``conf.json`` file can
178131
be created in ``share/jupyter/voila/templates/reveal/``:

0 commit comments

Comments
 (0)