From b78a4554a87ae86def7e4d3784f6524475fa8598 Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Fri, 29 Nov 2024 03:46:54 +0000 Subject: [PATCH] upgrade mkdocs-pycafe and fix --- docs/copy-button.md | 2 +- docs/paste-buttons.md | 8 +- pixi.lock | 305 +++++++++++++++++++++++++++++++++++++++++- pixi.toml | 2 +- pyproject.toml | 2 +- 5 files changed, 305 insertions(+), 14 deletions(-) diff --git a/docs/copy-button.md b/docs/copy-button.md index 198fa7b..4752515 100644 --- a/docs/copy-button.md +++ b/docs/copy-button.md @@ -2,7 +2,7 @@ The `CopyButton` can be used to copy-paste any **string `value`**: -```{.python pycafe-embed pycafe-embed-height="100px" hl_lines="3"} +```{.python pycafe-embed pycafe-embed-height="100px" pycafe-iframe-allow="clipboard-write; clipboard-read" hl_lines="3"} from panel_copy_paste import CopyButton CopyButton(value="Hello World").servable() diff --git a/docs/paste-buttons.md b/docs/paste-buttons.md index d2c29b8..209d21e 100644 --- a/docs/paste-buttons.md +++ b/docs/paste-buttons.md @@ -4,7 +4,7 @@ The `PasteButton` can be used to paste any **string `value`**: -```{.python pycafe-link pycafe-embed-height="100px" hl_lines="2,7"} +```{.python pycafe-link pycafe-embed-height="100px" hl_lines="6-7"} import panel as pn from panel_copy_paste import PasteButton @@ -17,7 +17,7 @@ pn.Column(button, editor).servable() If you want a **custom button**, it's also possible: -```{.python pycafe-link hl_lines="4-5"} +```{.python pycafe-link hl_lines="7-8"} import panel as pn from panel_copy_paste import PasteButton @@ -31,7 +31,7 @@ pn.Column(button, editor).servable() The `target` is optional and may be a *Widget or Pane like* `Parameterized` class, a `Parameter` or a callable (function). For example you can use a callable to lower case the string before pasting the value to a widget: -```{.python pycafe-link hl_lines="8,9,11"} +```{.python pycafe-link hl_lines="8-11"} import panel as pn from panel_copy_paste import PasteButton @@ -50,7 +50,7 @@ pn.Column(button, editor).servable() The `PasteToDataFrameButton` can be used to **paste a *tab-separated* string from Excel** or another application into your data app: -```{.python pycafe-link extra-requirements="pandas" hl_lines="2,7"} +```{.python pycafe-link extra-requirements="pandas" hl_lines="6-7"} import panel as pn from panel_copy_paste import PasteToDataFrameButton diff --git a/pixi.lock b/pixi.lock index 710f866..050f450 100644 --- a/pixi.lock +++ b/pixi.lock @@ -1257,7 +1257,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-3.21.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstandard-0.23.0-py313h80202fe_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.6-ha6fb4c9_0.conda - - pypi: https://files.pythonhosted.org/packages/f1/e8/fc371d0c1ceb7fce7b818aff2bf87c7497eee4f031ffcb29df86dfdf575b/mkdocs_pycafe-0.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c5/fb/da6b18d882b38e3fa623beb7f3749a686cc02c2ce5a8cccd4093e2f8e91a/mkdocs_pycafe-0.2.0-py3-none-any.whl osx-64: - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.16.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/bleach-6.2.0-pyhd8ed1ab_0.conda @@ -1372,7 +1372,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-3.21.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-64/zstandard-0.23.0-py313hab0894d_1.conda - conda: https://conda.anaconda.org/conda-forge/osx-64/zstd-1.5.6-h915ae27_0.conda - - pypi: https://files.pythonhosted.org/packages/f1/e8/fc371d0c1ceb7fce7b818aff2bf87c7497eee4f031ffcb29df86dfdf575b/mkdocs_pycafe-0.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c5/fb/da6b18d882b38e3fa623beb7f3749a686cc02c2ce5a8cccd4093e2f8e91a/mkdocs_pycafe-0.2.0-py3-none-any.whl osx-arm64: - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.16.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/bleach-6.2.0-pyhd8ed1ab_0.conda @@ -1487,7 +1487,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-3.21.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/zstandard-0.23.0-py313hf2da073_1.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/zstd-1.5.6-hb46c0d2_0.conda - - pypi: https://files.pythonhosted.org/packages/f1/e8/fc371d0c1ceb7fce7b818aff2bf87c7497eee4f031ffcb29df86dfdf575b/mkdocs_pycafe-0.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c5/fb/da6b18d882b38e3fa623beb7f3749a686cc02c2ce5a8cccd4093e2f8e91a/mkdocs_pycafe-0.2.0-py3-none-any.whl win-64: - conda: https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-2_gnu.conda - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.16.0-pyhd8ed1ab_0.conda @@ -1607,7 +1607,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-3.21.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstandard-0.23.0-py313h574b89f_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.6-h0ea2cb4_0.conda - - pypi: https://files.pythonhosted.org/packages/f1/e8/fc371d0c1ceb7fce7b818aff2bf87c7497eee4f031ffcb29df86dfdf575b/mkdocs_pycafe-0.1.0-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/c5/fb/da6b18d882b38e3fa623beb7f3749a686cc02c2ce5a8cccd4093e2f8e91a/mkdocs_pycafe-0.2.0-py3-none-any.whl lint: channels: - url: https://conda.anaconda.org/conda-forge/ @@ -5811,6 +5811,29 @@ packages: - pkg:pypi/brotli?source=hash-mapping size: 339067 timestamp: 1725268603536 +- kind: conda + name: brotli-python + version: 1.1.0 + build: py313h46c70d0_2 + build_number: 2 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.1.0-py313h46c70d0_2.conda + sha256: da92e5e904465fce33a7a55658b13caa5963cc463c430356373deeda8b2dbc46 + md5: f6bb3742e17a4af0dc3c8ca942683ef6 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libstdcxx >=13 + - python >=3.13.0rc1,<3.14.0a0 + - python_abi 3.13.* *_cp313 + constrains: + - libbrotlicommon 1.1.0 hb9d3cd8_2 + license: MIT + license_family: MIT + purls: + - pkg:pypi/brotli?source=hash-mapping + size: 350424 + timestamp: 1725267803672 - kind: conda name: brotli-python version: 1.1.0 @@ -6315,6 +6338,27 @@ packages: - pkg:pypi/cffi?source=hash-mapping size: 282115 timestamp: 1725560759157 +- kind: conda + name: cffi + version: 1.17.1 + build: py313hfab6e84_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/cffi-1.17.1-py313hfab6e84_0.conda + sha256: 73cd6199b143a8a6cbf733ce124ed57defc1b9a7eab9b10fd437448caf8eaa45 + md5: ce6386a5892ef686d6d680c345c40ad1 + depends: + - __glibc >=2.17,<3.0.a0 + - libffi >=3.4,<4.0a0 + - libgcc >=13 + - pycparser + - python >=3.13.0rc1,<3.14.0a0 + - python_abi 3.13.* *_cp313 + license: MIT + license_family: MIT + purls: + - pkg:pypi/cffi?source=hash-mapping + size: 295514 + timestamp: 1725560706794 - kind: conda name: cffi version: 1.17.1 @@ -6684,6 +6728,27 @@ packages: - pkg:pypi/contourpy?source=hash-mapping size: 217444 timestamp: 1731429291382 +- kind: conda + name: contourpy + version: 1.3.1 + build: py313h33d0bda_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/contourpy-1.3.1-py313h33d0bda_0.conda + sha256: 22d254791c72300fbb129f2bc9240dae4a486cac4942e832543eb97ca5b87fbc + md5: 6b6768e7c585d7029f79a04cbc4cbff0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libstdcxx >=13 + - numpy >=1.23 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/contourpy?source=hash-mapping + size: 276640 + timestamp: 1731428466509 - kind: conda name: contourpy version: 1.3.1 @@ -10456,6 +10521,22 @@ packages: purls: [] size: 88657 timestamp: 1723861474602 +- kind: conda + name: libmpdec + version: 4.0.0 + build: h4bc722e_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-h4bc722e_0.conda + sha256: d02d1d3304ecaf5c728e515eb7416517a0b118200cd5eacbe829c432d1664070 + md5: aeb98fdeb2e8f25d43ef71fbacbeec80 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc-ng >=12 + license: BSD-2-Clause + license_family: BSD + purls: [] + size: 89991 + timestamp: 1723817448345 - kind: conda name: libmpdec version: 4.0.0 @@ -12071,6 +12152,27 @@ packages: - pkg:pypi/markupsafe?source=hash-mapping size: 24326 timestamp: 1729351501551 +- kind: conda + name: markupsafe + version: 3.0.2 + build: py313h8060acc_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/markupsafe-3.0.2-py313h8060acc_0.conda + sha256: 9158873dbd5b715d5683dd9241b3eab35e896e31ea7842052f1b4e8c3945bf45 + md5: ab825f8b676368beb91350c6a2da6e11 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 + constrains: + - jinja2 >=3.0.0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/markupsafe?source=hash-mapping + size: 25104 + timestamp: 1729351477153 - kind: conda name: markupsafe version: 3.0.2 @@ -12325,9 +12427,9 @@ packages: timestamp: 1700695213251 - kind: pypi name: mkdocs-pycafe - version: 0.1.0 - url: https://files.pythonhosted.org/packages/f1/e8/fc371d0c1ceb7fce7b818aff2bf87c7497eee4f031ffcb29df86dfdf575b/mkdocs_pycafe-0.1.0-py3-none-any.whl - sha256: 48a4375bc2f9ee128befe358ef4c358013d605c19b8e3511826e012baaa79779 + version: 0.2.0 + url: https://files.pythonhosted.org/packages/c5/fb/da6b18d882b38e3fa623beb7f3749a686cc02c2ce5a8cccd4093e2f8e91a/mkdocs_pycafe-0.2.0-py3-none-any.whl + sha256: be546982875e5ad2a5d89e88b36b720f60efce3a263a6fb05fe35baabc1c0e19 requires_dist: - markdown - mkdocs ; extra == 'docs' @@ -13135,6 +13237,31 @@ packages: license_family: BSD size: 7538388 timestamp: 1730588494493 +- kind: conda + name: numpy + version: 2.1.3 + build: py313h4bf6692_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.1.3-py313h4bf6692_0.conda + sha256: e2e7451083c143cd61227d663e55712a7432239e9a9c758db0b66a26bc89a7f8 + md5: 17bcf851cceab793dad11ab8089d4bc4 + depends: + - __glibc >=2.17,<3.0.a0 + - libblas >=3.9.0,<4.0a0 + - libcblas >=3.9.0,<4.0a0 + - libgcc >=13 + - liblapack >=3.9.0,<4.0a0 + - libstdcxx >=13 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + size: 8404824 + timestamp: 1730588549941 - kind: conda name: numpy version: 2.1.3 @@ -13752,6 +13879,32 @@ packages: - pkg:pypi/pandas?source=hash-mapping size: 14464446 timestamp: 1726878986761 +- kind: conda + name: pandas + version: 2.2.3 + build: py313ha87cce1_1 + build_number: 1 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/pandas-2.2.3-py313ha87cce1_1.conda + sha256: 6337d2fe918ba5f5bef21037c4539dfee2f58b25e84c5f9b1cf14b5db4ed23d5 + md5: c5d63dd501db554b84a30dea33824164 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libstdcxx >=13 + - numpy >=1.21,<3 + - numpy >=1.22.4 + - python >=3.13.0rc2,<3.14.0a0 + - python-dateutil >=2.8.1 + - python-tzdata >=2022a + - python_abi 3.13.* *_cp313 + - pytz >=2020.1,<2024.2 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pandas?source=hash-mapping + size: 15407410 + timestamp: 1726878925082 - kind: conda name: pandas version: 2.2.3 @@ -14101,6 +14254,33 @@ packages: license: HPND size: 41737424 timestamp: 1729065920347 +- kind: conda + name: pillow + version: 11.0.0 + build: py313h2d7ed13_0 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/pillow-11.0.0-py313h2d7ed13_0.conda + sha256: 58fa8f6e13da07d5cf9c846d1991a2147cdab9824a188fd061b3019d7a7e3087 + md5: 0d95e1cda6bf9ce501e751c02561204e + depends: + - __glibc >=2.17,<3.0.a0 + - freetype >=2.12.1,<3.0a0 + - lcms2 >=2.16,<3.0a0 + - libgcc >=13 + - libjpeg-turbo >=3.0.0,<4.0a0 + - libtiff >=4.7.0,<4.8.0a0 + - libwebp-base >=1.4.0,<2.0a0 + - libxcb >=1.17.0,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - openjpeg >=2.5.2,<3.0a0 + - python >=3.13,<3.14.0a0 + - python_abi 3.13.* *_cp313 + - tk >=8.6.13,<8.7.0a0 + license: HPND + purls: + - pkg:pypi/pillow?source=hash-mapping + size: 41801299 + timestamp: 1729065786802 - kind: conda name: pillow version: 11.0.0 @@ -16096,6 +16276,37 @@ packages: purls: [] size: 12804842 timestamp: 1729168680448 +- kind: conda + name: python + version: 3.13.0 + build: h9ebbce0_100_cp313 + build_number: 100 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/python-3.13.0-h9ebbce0_100_cp313.conda + sha256: 6ab5179679f0909db828d8316f3b8b379014a82404807310fe7df5a6cf303646 + md5: 08e9aef080f33daeb192b2ddc7e4721f + depends: + - __glibc >=2.17,<3.0.a0 + - bzip2 >=1.0.8,<2.0a0 + - ld_impl_linux-64 >=2.36.1 + - libexpat >=2.6.3,<3.0a0 + - libffi >=3.4,<4.0a0 + - libgcc >=13 + - libmpdec >=4.0.0,<5.0a0 + - libsqlite >=3.46.1,<4.0a0 + - libuuid >=2.38.1,<3.0a0 + - libzlib >=1.3.1,<2.0a0 + - ncurses >=6.5,<7.0a0 + - openssl >=3.3.2,<4.0a0 + - python_abi 3.13.* *_cp313 + - readline >=8.2,<9.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + - xz >=5.2.6,<6.0a0 + license: Python-2.0 + purls: [] + size: 33112481 + timestamp: 1728419573472 - kind: conda name: python version: 3.13.0 @@ -16381,6 +16592,22 @@ packages: license_family: BSD size: 6730 timestamp: 1723823139725 +- kind: conda + name: python_abi + version: '3.13' + build: 5_cp313 + build_number: 5 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.13-5_cp313.conda + sha256: 438225b241c5f9bddae6f0178a97f5870a89ecf927dfca54753e689907331442 + md5: 381bbd2a92c863f640a55b6ff3c35161 + constrains: + - python 3.13.* *_cp313 + license: BSD-3-Clause + license_family: BSD + purls: [] + size: 6217 + timestamp: 1723823393322 - kind: conda name: python_abi version: '3.13' @@ -16708,6 +16935,27 @@ packages: - pkg:pypi/pyyaml?source=hash-mapping size: 187550 timestamp: 1725456463634 +- kind: conda + name: pyyaml + version: 6.0.2 + build: py313h536fd9c_1 + build_number: 1 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/pyyaml-6.0.2-py313h536fd9c_1.conda + sha256: 86ae34bf2bab82c0fff2e31a37318c8977297776436df780a83c6efa5f84749d + md5: 3789f360de131c345e96fbfc955ca80b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - python >=3.13.0rc1,<3.14.0a0 + - python_abi 3.13.* *_cp313 + - yaml >=0.2.5,<0.3.0a0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pyyaml?source=hash-mapping + size: 205855 + timestamp: 1725456273924 - kind: conda name: pyyaml version: 6.0.2 @@ -18255,6 +18503,26 @@ packages: - pkg:pypi/tornado?source=hash-mapping size: 867065 timestamp: 1724960911660 +- kind: conda + name: tornado + version: 6.4.1 + build: py313h536fd9c_1 + build_number: 1 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/tornado-6.4.1-py313h536fd9c_1.conda + sha256: 29630b1f5452628b661a7cdde2c54aa7d9e31874d4ddb8080ad060c10e79063d + md5: 70b5b6dfd7d1760cd59849e2271d937b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - python >=3.13.0rc1,<3.14.0a0 + - python_abi 3.13.* *_cp313 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/tornado?source=hash-mapping + size: 863224 + timestamp: 1724960831827 - kind: conda name: tornado version: 6.4.1 @@ -19522,6 +19790,29 @@ packages: - pkg:pypi/zstandard?source=hash-mapping size: 325703 timestamp: 1725305947138 +- kind: conda + name: zstandard + version: 0.23.0 + build: py313h80202fe_1 + build_number: 1 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/zstandard-0.23.0-py313h80202fe_1.conda + sha256: ea82f2b8964150a3aa7373b4697e48e64f2200fe68ae554ee85c641c692d1c97 + md5: c178558ff516cd507763ffee230c20b2 + depends: + - __glibc >=2.17,<3.0.a0 + - cffi >=1.11 + - libgcc >=13 + - python >=3.13.0rc1,<3.14.0a0 + - python_abi 3.13.* *_cp313 + - zstd >=1.5.6,<1.5.7.0a0 + - zstd >=1.5.6,<1.6.0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/zstandard?source=hash-mapping + size: 424424 + timestamp: 1725305749031 - kind: conda name: zstandard version: 0.23.0 diff --git a/pixi.toml b/pixi.toml index 68344e3..28e67be 100644 --- a/pixi.toml +++ b/pixi.toml @@ -80,7 +80,7 @@ mkdocs = "*" mkdocs-material = "*" mkdocstrings-python = "*" [feature.docs.pypi-dependencies] -mkdocs-pycafe = "*" +mkdocs-pycafe = ">=0.2.0" [feature.docs.tasks] docs = "mkdocs serve" docs-build = "mkdocs build" diff --git a/pyproject.toml b/pyproject.toml index a985156..8cec56e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ Source = "https://github.com/awesome-panel/panel-copy-paste" dev = [ "jedi-language-server;sys_platform == 'linux'", "mkdocs-material", - "mkdocs-pycafe", + "mkdocs-pycafe>=0.2.0", "mkdocs", "mkdocstrings[python]", "pandas",