holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.4k stars 484 forks source link

FileInput.value is not overwritten on Google Cloud Vertex AI Workbench (Jupyter lab) #6893

Open progressEdd opened 3 weeks ago

progressEdd commented 3 weeks ago

Hi all, I had issues where uploading a file does not overwrite FileInput.value. I was told to file a bug report after my post on the forum. The files are 10-15 kb and I only upload 2 files at a time for these tests. I will also reach out to GCP to see if they can provide any additional debugging outputs.

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)

package/environment (remote)
conda info
     active environment : base
    active env location : /opt/conda
            shell level : 4
       user config file : /home/jupyter/.condarc
 populated config files : /opt/conda/.condarc
          conda version : 24.5.0
    conda-build version : not installed
         python version : 3.10.14.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=broadwell
                          __conda=24.5.0=0
                          __glibc=2.31=0
                          __linux=5.10.0=0
                          __unix=0=0
       base environment : /opt/conda  (writable)
      conda av data dir : /opt/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/nodefaults/linux-64
                          https://conda.anaconda.org/nodefaults/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /opt/conda/pkgs
                          /home/jupyter/.conda/pkgs
       envs directories : /opt/conda/envs
                          /home/jupyter/.conda/envs
               platform : linux-64
             user-agent : conda/24.5.0 requests/2.31.0 CPython/3.10.14 Linux/5.10.0-29-cloud-amd64 debian/11.9 glibc/2.31 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
                UID:GID : 1000:1001
             netrc file : None
           offline mode : False
conda list
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
absl-py                   2.1.0                    pypi_0    pypi
aiohttp                   3.9.5                    pypi_0    pypi
aiohttp-cors              0.7.0                    pypi_0    pypi
aiosignal                 1.3.1                    pypi_0    pypi
annotated-types           0.6.0                    pypi_0    pypi
anyio                     3.7.1                    pypi_0    pypi
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
argon2-cffi               23.1.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py310h2372a71_4    conda-forge
arrow                     1.3.0              pyhd8ed1ab_0    conda-forge
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
async-lru                 2.0.4                    pypi_0    pypi
async-timeout             4.0.3                    pypi_0    pypi
attrs                     23.2.0             pyh71513ae_0    conda-forge
babel                     2.15.0                   pypi_0    pypi
backports-tarfile         1.1.1                    pypi_0    pypi
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
bleach                    6.1.0              pyhd8ed1ab_0    conda-forge
blessed                   1.20.0                   pypi_0    pypi
bokeh                     3.4.1              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
bq-stats                  1.0                      pypi_0    pypi
brotli-python             1.1.0           py310hc6cd4ac_1    conda-forge
brotlipy                  0.7.0           py310h7f8727e_1002  
bzip2                     1.0.8                h7b6447c_0  
c-ares                    1.28.1               hd590300_0    conda-forge
ca-certificates           2024.6.2             hbcca054_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachetools                5.3.3                    pypi_0    pypi
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py310h2fee648_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7                    pypi_0    pypi
cloud-tpu-client          0.10                     pypi_0    pypi
cloudpickle               3.0.0                    pypi_0    pypi
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
colorful                  0.5.6                    pypi_0    pypi
comm                      0.2.2              pyhd8ed1ab_0    conda-forge
conda                     24.5.0          py310hff52083_0    conda-forge
conda-content-trust       0+unknown                pypi_0    pypi
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
contourpy                 1.2.1           py310hd41b1e2_0    conda-forge
cryptography              42.0.7          py310hb1bd9d3_0    conda-forge
cycler                    0.12.1                   pypi_0    pypi
dacite                    1.8.1                    pypi_0    pypi
db-dtypes                 1.2.0                    pypi_0    pypi
debugpy                   1.8.1           py310hc6cd4ac_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
deprecated                1.2.14                   pypi_0    pypi
distlib                   0.3.8                    pypi_0    pypi
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
dlenv-ml-framework        1.0.20240515            py310_0    file:///tmp/conda-pkgs
dm-tree                   0.1.8                    pypi_0    pypi
dnspython                 2.6.1                    pypi_0    pypi
docker                    7.0.0                    pypi_0    pypi
docstring-parser          0.16                     pypi_0    pypi
email-validator           2.1.1                    pypi_0    pypi
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.1                    pypi_0    pypi
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
farama-notifications      0.0.4                    pypi_0    pypi
fastapi                   0.111.0                  pypi_0    pypi
fastapi-cli               0.0.3                    pypi_0    pypi
filelock                  3.14.0                   pypi_0    pypi
fmt                       10.2.1               h00ab1b0_0    conda-forge
fonttools                 4.51.0                   pypi_0    pypi
fqdn                      1.5.1              pyhd8ed1ab_0    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
frozendict                2.4.4           py310hc51659f_0    conda-forge
frozenlist                1.4.1                    pypi_0    pypi
fsspec                    2024.3.1                 pypi_0    pypi
gcsfs                     2024.3.1                 pypi_0    pypi
gitdb                     4.0.11                   pypi_0    pypi
gitpython                 3.1.43                   pypi_0    pypi
google-api-core           1.34.1                   pypi_0    pypi
google-api-python-client  1.8.0                    pypi_0    pypi
google-auth               2.29.0                   pypi_0    pypi
google-auth-httplib2      0.2.0                    pypi_0    pypi
google-auth-oauthlib      1.2.0                    pypi_0    pypi
google-cloud-aiplatform   1.51.0                   pypi_0    pypi
google-cloud-artifact-registry 1.11.3                   pypi_0    pypi
google-cloud-bigquery     3.22.0                   pypi_0    pypi
google-cloud-bigquery-storage 2.25.0                   pypi_0    pypi
google-cloud-core         2.4.1                    pypi_0    pypi
google-cloud-datastore    1.15.5                   pypi_0    pypi
google-cloud-language     2.13.3                   pypi_0    pypi
google-cloud-monitoring   2.21.0                   pypi_0    pypi
google-cloud-resource-manager 1.12.3                   pypi_0    pypi
google-cloud-storage      2.14.0                   pypi_0    pypi
google-crc32c             1.5.0                    pypi_0    pypi
google-resumable-media    2.7.0                    pypi_0    pypi
googleapis-common-protos  1.63.0                   pypi_0    pypi
gpustat                   1.0.0                    pypi_0    pypi
greenlet                  3.0.3                    pypi_0    pypi
grpc-google-iam-v1        0.13.0                   pypi_0    pypi
grpcio                    1.63.0                   pypi_0    pypi
grpcio-status             1.48.2                   pypi_0    pypi
gymnasium                 0.28.1                   pypi_0    pypi
h11                       0.14.0                   pypi_0    pypi
htmlmin                   0.1.12                   pypi_0    pypi
httpcore                  1.0.5                    pypi_0    pypi
httplib2                  0.22.0                   pypi_0    pypi
httptools                 0.6.1                    pypi_0    pypi
httpx                     0.27.0                   pypi_0    pypi
icu                       73.2                 h59595ed_0    conda-forge
idna                      3.7                pyhd8ed1ab_0    conda-forge
imagehash                 4.3.1                    pypi_0    pypi
imageio                   2.34.1                   pypi_0    pypi
importlib-metadata        7.0.0              pyha770c72_0    conda-forge
importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
ipykernel                 6.29.4                   pypi_0    pypi
ipython                   8.21.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipython-sql               0.5.0                    pypi_0    pypi
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                8.1.2                    pypi_0    pypi
isoduration               20.11.0            pyhd8ed1ab_0    conda-forge
jaraco-classes            3.4.0                    pypi_0    pypi
jaraco-context            5.3.0                    pypi_0    pypi
jaraco-functools          4.0.1                    pypi_0    pypi
jax-jumpy                 1.0.0                    pypi_0    pypi
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jeepney                   0.8.0                    pypi_0    pypi
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2                    pypi_0    pypi
json5                     0.9.25                   pypi_0    pypi
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310hff52083_3    conda-forge
jsonschema                4.22.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.12.1          pyhd8ed1ab_0    conda-forge
jsonschema-with-format-nongpl 4.22.0             pyhd8ed1ab_0    conda-forge
jupyter-bokeh             4.0.5                    pypi_0    pypi
jupyter-lsp               2.2.5                    pypi_0    pypi
jupyter-server            2.14.1                   pypi_0    pypi
jupyter-server-mathjax    0.2.6                    pypi_0    pypi
jupyter_client            7.4.9              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.2           py310hff52083_0    conda-forge
jupyter_events            0.10.0             pyhd8ed1ab_0    conda-forge
jupyter_server            2.14.0             pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_0    conda-forge
jupyterlab                4.2.1                    pypi_0    pypi
jupyterlab-server         2.27.1                   pypi_0    pypi
jupyterlab-widgets        3.0.10                   pypi_0    pypi
jupyterlab_pygments       0.3.0              pyhd8ed1ab_1    conda-forge
keyring                   25.2.1                   pypi_0    pypi
keyrings-google-artifactregistry-auth 1.1.2                    pypi_0    pypi
keyutils                  1.6.1                h166bdaf_0    conda-forge
kfp                       2.5.0                    pypi_0    pypi
kfp-pipeline-spec         0.2.2                    pypi_0    pypi
kfp-server-api            2.0.5                    pypi_0    pypi
kiwisolver                1.4.5                    pypi_0    pypi
krb5                      1.21.2               h659d440_0    conda-forge
kubernetes                26.1.0                   pypi_0    pypi
lazy-loader               0.4                      pypi_0    pypi
lcms2                     2.16                 hb7c19ff_0    conda-forge
ld_impl_linux-64          2.40                 h55db66e_0    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libarchive                3.7.2                h2aa1ff5_1    conda-forge
libblas                   3.9.0           22_linux64_openblas    conda-forge
libcblas                  3.9.0           22_linux64_openblas    conda-forge
libcurl                   8.7.1                hca28451_0    conda-forge
libdeflate                1.20                 hd590300_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.2.0               h77fa898_7    conda-forge
libgfortran-ng            13.2.0               h69a702a_7    conda-forge
libgfortran5              13.2.0               hca663fb_7    conda-forge
libgomp                   13.2.0               h77fa898_7    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0           22_linux64_openblas    conda-forge
libmamba                  1.5.8                had39da4_0    conda-forge
libmambapy                1.5.8           py310h39ff949_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.27          pthreads_h413a1c8_0    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libsolv                   0.7.29               ha6fb4c9_0    conda-forge
libsqlite                 3.45.3               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.2.0               hc0a3c3a_7    conda-forge
libtiff                   4.6.0                h1dd3fc0_3    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.48.0               hd590300_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.15                 h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.7               hc051c1a_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
linkify-it-py             2.0.3              pyhd8ed1ab_0    conda-forge
llvmlite                  0.42.0                   pypi_0    pypi
lz4                       4.3.3                    pypi_0    pypi
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              hd590300_1001    conda-forge
markdown                  3.6                pyhd8ed1ab_0    conda-forge
markdown-it-py            3.0.0              pyhd8ed1ab_0    conda-forge
markupsafe                2.1.5           py310h2372a71_0    conda-forge
matplotlib                3.8.4                    pypi_0    pypi
matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
mdit-py-plugins           0.4.1              pyhd8ed1ab_0    conda-forge
mdurl                     0.1.2              pyhd8ed1ab_0    conda-forge
memray                    1.12.0                   pypi_0    pypi
menuinst                  2.0.2           py310hff52083_0    conda-forge
mistune                   3.0.2              pyhd8ed1ab_0    conda-forge
more-itertools            10.2.0                   pypi_0    pypi
msgpack                   1.0.8                    pypi_0    pypi
multidict                 6.0.5                    pypi_0    pypi
multimethod               1.11.2                   pypi_0    pypi
nb_conda                  2.2.1                    unix_7    conda-forge
nb_conda_kernels          2.5.1              pyh707e725_2    conda-forge
nbclassic                 1.0.0              pyhb4ecaf3_1    conda-forge
nbclient                  0.10.0             pyhd8ed1ab_0    conda-forge
nbconvert                 7.16.4               hd8ed1ab_0    conda-forge
nbconvert-core            7.16.4             pyhd8ed1ab_0    conda-forge
nbconvert-pandoc          7.16.4               hd8ed1ab_0    conda-forge
nbdime                    3.2.0                    pypi_0    pypi
nbformat                  5.10.4             pyhd8ed1ab_0    conda-forge
ncurses                   6.5                  h59595ed_0    conda-forge
nest-asyncio              1.6.0              pyhd8ed1ab_0    conda-forge
networkx                  3.3                      pypi_0    pypi
nodejs                    20.12.2              hb753e55_0    conda-forge
notebook                  6.5.7                    pypi_0    pypi
notebook-shim             0.2.4              pyhd8ed1ab_0    conda-forge
numba                     0.59.1                   pypi_0    pypi
numpy                     1.26.4          py310hb13e2d6_0    conda-forge
nvidia-ml-py              11.495.46                pypi_0    pypi
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
opencensus                0.11.4                   pypi_0    pypi
opencensus-context        0.1.3                    pypi_0    pypi
openjpeg                  2.5.2                h488ebb8_0    conda-forge
openssl                   3.3.0                h4ab18f5_3    conda-forge
opentelemetry-api         1.24.0                   pypi_0    pypi
opentelemetry-exporter-otlp 1.24.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-common 1.24.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-grpc 1.24.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-http 1.24.0                   pypi_0    pypi
opentelemetry-proto       1.24.0                   pypi_0    pypi
opentelemetry-sdk         1.24.0                   pypi_0    pypi
opentelemetry-semantic-conventions 0.45b0                   pypi_0    pypi
orjson                    3.10.3                   pypi_0    pypi
overrides                 7.7.0              pyhd8ed1ab_0    conda-forge
packaging                 24.0               pyhd8ed1ab_0    conda-forge
pandas                    2.2.2           py310hf9f9076_1    conda-forge
pandas-profiling          3.6.6                    pypi_0    pypi
pandoc                    3.2                  ha770c72_0    conda-forge
pandocfilters             1.5.1                    pypi_0    pypi
panel                     1.4.4              pyhd8ed1ab_0    conda-forge
param                     2.1.0              pyhca7485f_0    conda-forge
parso                     0.8.4              pyhd8ed1ab_0    conda-forge
patsy                     0.5.6                    pypi_0    pypi
pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
phik                      0.12.4                   pypi_0    pypi
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.3.0          py310hf73ecf8_0    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              4.2.1              pyhd8ed1ab_0    conda-forge
plotly                    5.22.0                   pypi_0    pypi
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
prettytable               3.10.0                   pypi_0    pypi
prometheus_client         0.20.0             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.43                   pypi_0    pypi
proto-plus                1.23.0                   pypi_0    pypi
protobuf                  3.20.3                   pypi_0    pypi
psutil                    5.9.3                    pypi_0    pypi
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
py-spy                    0.3.14                   pypi_0    pypi
pyarrow                   16.1.0                   pypi_0    pypi
pyasn1                    0.6.0                    pypi_0    pypi
pyasn1-modules            0.4.0                    pypi_0    pypi
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2372a71_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pydantic                  2.7.1                    pypi_0    pypi
pydantic-core             2.18.2                   pypi_0    pypi
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pyopenssl                 24.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.1.2                    pypi_0    pypi
pysocks                   1.7.1           py310h06a4308_0  
python                    3.10.14         hd12c33a_0_cpython    conda-forge
python-dateutil           2.9.0.post0              pypi_0    pypi
python-dotenv             1.0.1                    pypi_0    pypi
python-fastjsonschema     2.19.1             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python-multipart          0.0.9                    pypi_0    pypi
python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
python_abi                3.10                    4_cp310    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyviz_comms               3.0.2              pyhd8ed1ab_1    conda-forge
pywavelets                1.6.0                    pypi_0    pypi
pyyaml                    6.0.1           py310h2372a71_1    conda-forge
pyzmq                     26.0.3                   pypi_0    pypi
ray                       2.22.0                   pypi_0    pypi
ray-cpp                   2.22.0                   pypi_0    pypi
readline                  8.2                  h8228510_1    conda-forge
referencing               0.35.1             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4.post0         hd590300_1    conda-forge
reproc-cpp                14.2.4.post0         h59595ed_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
requests-oauthlib         2.0.0                    pypi_0    pypi
requests-toolbelt         0.10.1                   pypi_0    pypi
retrying                  1.3.4                    pypi_0    pypi
rfc3339-validator         0.1.4              pyhd8ed1ab_0    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rich                      13.7.1                   pypi_0    pypi
rpds-py                   0.18.1          py310he421c4c_0    conda-forge
ruamel.yaml               0.18.6          py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.8           py310h2372a71_0    conda-forge
ruamel_yaml               0.15.100        py310h7f8727e_0  
scikit-image              0.23.2                   pypi_0    pypi
scikit-learn              1.4.2                    pypi_0    pypi
scipy                     1.13.0                   pypi_0    pypi
seaborn                   0.13.2                   pypi_0    pypi
secretstorage             3.3.3                    pypi_0    pypi
send2trash                1.8.3              pyh0d859eb_0    conda-forge
setuptools                69.5.1             pyhd8ed1ab_0    conda-forge
shapely                   2.0.4                    pypi_0    pypi
shellingham               1.5.4                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
smart-open                7.0.4                    pypi_0    pypi
smmap                     5.0.1                    pypi_0    pypi
sniffio                   1.3.1              pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
sqlalchemy                2.0.30                   pypi_0    pypi
sqlite                    3.38.2               hc218d9a_0  
sqlparse                  0.5.0                    pypi_0    pypi
stack-data                0.6.3                    pypi_0    pypi
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
starlette                 0.37.2                   pypi_0    pypi
statsmodels               0.14.2                   pypi_0    pypi
tabulate                  0.9.0                    pypi_0    pypi
tenacity                  8.3.0                    pypi_0    pypi
tensorboardx              2.6.2.2                  pypi_0    pypi
terminado                 0.18.1             pyh0d859eb_0    conda-forge
textual                   0.60.0                   pypi_0    pypi
threadpoolctl             3.5.0                    pypi_0    pypi
tifffile                  2024.5.10                pypi_0    pypi
tinycss2                  1.3.0              pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tomli                     2.0.1                    pypi_0    pypi
tornado                   6.4             py310h2372a71_0    conda-forge
tqdm                      4.66.4             pyhd8ed1ab_0    conda-forge
traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
typeguard                 4.2.1                    pypi_0    pypi
typer                     0.12.3                   pypi_0    pypi
types-python-dateutil     2.9.0.20240316     pyhd8ed1ab_0    conda-forge
typing-extensions         4.11.0               hd8ed1ab_0    conda-forge
typing_extensions         4.11.0             pyha770c72_0    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
uc-micro-py               1.0.3              pyhd8ed1ab_0    conda-forge
ujson                     5.10.0                   pypi_0    pypi
uri-template              1.3.0              pyhd8ed1ab_0    conda-forge
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.18                  pypi_0    pypi
uvicorn                   0.29.0                   pypi_0    pypi
uvloop                    0.19.0                   pypi_0    pypi
virtualenv                20.26.2                  pypi_0    pypi
visions                   0.7.6                    pypi_0    pypi
watchfiles                0.22.0          py310he421c4c_0    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
webcolors                 1.13               pyhd8ed1ab_0    conda-forge
webencodings              0.5.1              pyhd8ed1ab_2    conda-forge
websocket-client          1.8.0              pyhd8ed1ab_0    conda-forge
websockets                12.0                     pypi_0    pypi
wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
widgetsnbextension        4.0.10                   pypi_0    pypi
wordcloud                 1.9.3                    pypi_0    pypi
wrapt                     1.16.0                   pypi_0    pypi
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xyzservices               2024.4.0           pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7b6447c_0  
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
yarl                      1.9.4                    pypi_0    pypi
ydata-profiling           4.8.3                    pypi_0    pypi
zeromq                    4.3.5                h75354e8_4    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstandard                 0.22.0          py310h1275a96_0    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge
pip list freeze
Package                                  Version
---------------------------------------- --------------
absl-py                                  2.1.0
aiohttp                                  3.9.5
aiohttp-cors                             0.7.0
aiosignal                                1.3.1
annotated-types                          0.6.0
anyio                                    3.7.1
archspec                                 0.2.3
argon2-cffi                              23.1.0
argon2-cffi-bindings                     21.2.0
arrow                                    1.3.0
asttokens                                2.4.1
async-lru                                2.0.4
async-timeout                            4.0.3
attrs                                    23.2.0
Babel                                    2.15.0
backports.tarfile                        1.1.1
beautifulsoup4                           4.12.3
bleach                                   6.1.0
blessed                                  1.20.0
bokeh                                    3.4.1
boltons                                  24.0.0
bq_stats                                 1.0
Brotli                                   1.1.0
brotlipy                                 0.7.0
cached-property                          1.5.2
cachetools                               5.3.3
certifi                                  2024.2.2
cffi                                     1.16.0
charset-normalizer                       3.3.2
click                                    8.1.7
cloud-tpu-client                         0.10
cloudpickle                              3.0.0
colorama                                 0.4.6
colorful                                 0.5.6
comm                                     0.2.2
conda                                    24.5.0
conda-content-trust                      0+unknown
conda-libmamba-solver                    24.1.0
conda-package-handling                   2.2.0
conda_package_streaming                  0.9.0
contourpy                                1.2.1
cryptography                             42.0.7
cycler                                   0.12.1
dacite                                   1.8.1
db-dtypes                                1.2.0
debugpy                                  1.8.1
decorator                                5.1.1
defusedxml                               0.7.1
Deprecated                               1.2.14
distlib                                  0.3.8
distro                                   1.9.0
dm-tree                                  0.1.8
dnspython                                2.6.1
docker                                   7.0.0
docstring_parser                         0.16
email_validator                          2.1.1
entrypoints                              0.4
exceptiongroup                           1.2.0
executing                                2.0.1
Farama-Notifications                     0.0.4
fastapi                                  0.111.0
fastapi-cli                              0.0.3
fastjsonschema                           2.19.1
filelock                                 3.14.0
fonttools                                4.51.0
fqdn                                     1.5.1
frozendict                               2.4.4
frozenlist                               1.4.1
fsspec                                   2024.3.1
gcsfs                                    2024.3.1
gitdb                                    4.0.11
GitPython                                3.1.43
google-api-core                          1.34.1
google-api-python-client                 1.8.0
google-auth                              2.29.0
google-auth-httplib2                     0.2.0
google-auth-oauthlib                     1.2.0
google-cloud-aiplatform                  1.51.0
google-cloud-artifact-registry           1.11.3
google-cloud-bigquery                    3.22.0
google-cloud-bigquery-storage            2.25.0
google-cloud-core                        2.4.1
google-cloud-datastore                   1.15.5
google-cloud-language                    2.13.3
google-cloud-monitoring                  2.21.0
google-cloud-resource-manager            1.12.3
google-cloud-storage                     2.14.0
google-crc32c                            1.5.0
google-resumable-media                   2.7.0
googleapis-common-protos                 1.63.0
gpustat                                  1.0.0
greenlet                                 3.0.3
grpc-google-iam-v1                       0.13.0
grpcio                                   1.63.0
grpcio-status                            1.48.2
gymnasium                                0.28.1
h11                                      0.14.0
htmlmin                                  0.1.12
httpcore                                 1.0.5
httplib2                                 0.22.0
httptools                                0.6.1
httpx                                    0.27.0
idna                                     3.7
ImageHash                                4.3.1
imageio                                  2.34.1
importlib-metadata                       7.0.0
importlib_resources                      6.4.0
ipykernel                                6.29.3
ipython                                  8.21.0
ipython-genutils                         0.2.0
ipython-sql                              0.5.0
ipywidgets                               8.1.2
isoduration                              20.11.0
jaraco.classes                           3.4.0
jaraco.context                           5.3.0
jaraco.functools                         4.0.1
jax-jumpy                                1.0.0
jedi                                     0.19.1
jeepney                                  0.8.0
Jinja2                                   3.1.4
joblib                                   1.4.2
json5                                    0.9.25
jsonpatch                                1.33
jsonpointer                              2.4
jsonschema                               4.22.0
jsonschema-specifications                2023.12.1
jupyter_bokeh                            4.0.5
jupyter_client                           7.4.9
jupyter_core                             5.7.2
jupyter-events                           0.10.0
jupyter-lsp                              2.2.5
jupyter_server                           2.14.0
jupyter-server-mathjax                   0.2.6
jupyter_server_terminals                 0.5.3
jupyterlab                               4.2.1
jupyterlab_pygments                      0.3.0
jupyterlab_server                        2.27.1
jupyterlab_widgets                       3.0.10
keyring                                  25.2.1
keyrings.google-artifactregistry-auth    1.1.2
kfp                                      2.5.0
kfp-pipeline-spec                        0.2.2
kfp-server-api                           2.0.5
kiwisolver                               1.4.5
kubernetes                               26.1.0
lazy_loader                              0.4
libmambapy                               1.5.8
linkify-it-py                            2.0.3
llvmlite                                 0.42.0
lz4                                      4.3.3
Markdown                                 3.6
markdown-it-py                           3.0.0
MarkupSafe                               2.1.5
matplotlib                               3.8.4
matplotlib-inline                        0.1.7
mdit-py-plugins                          0.4.1
mdurl                                    0.1.2
memray                                   1.12.0
menuinst                                 2.0.2
mistune                                  3.0.2
more-itertools                           10.2.0
msgpack                                  1.0.8
multidict                                6.0.5
multimethod                              1.11.2
nb_conda                                 2.2.1
nb_conda_kernels                         2.5.1
nbclassic                                1.0.0
nbclient                                 0.10.0
nbconvert                                7.16.4
nbdime                                   3.2.0
nbformat                                 5.10.4
nest-asyncio                             1.6.0
networkx                                 3.3
notebook                                 6.5.6
notebook_shim                            0.2.4
numba                                    0.59.1
numpy                                    1.26.4
nvidia-ml-py                             11.495.46
oauth2client                             4.1.3
oauthlib                                 3.2.2
opencensus                               0.11.4
opencensus-context                       0.1.3
opentelemetry-api                        1.24.0
opentelemetry-exporter-otlp              1.24.0
opentelemetry-exporter-otlp-proto-common 1.24.0
opentelemetry-exporter-otlp-proto-grpc   1.24.0
opentelemetry-exporter-otlp-proto-http   1.24.0
opentelemetry-proto                      1.24.0
opentelemetry-sdk                        1.24.0
opentelemetry-semantic-conventions       0.45b0
orjson                                   3.10.3
overrides                                7.7.0
packaging                                24.0
pandas                                   2.2.2
pandas-profiling                         3.6.6
pandocfilters                            1.5.0
panel                                    1.4.4
param                                    2.1.0
parso                                    0.8.4
patsy                                    0.5.6
pexpect                                  4.9.0
phik                                     0.12.4
pickleshare                              0.7.5
pillow                                   10.3.0
pip                                      24.0
pkgutil_resolve_name                     1.3.10
platformdirs                             4.2.1
plotly                                   5.22.0
pluggy                                   1.5.0
prettytable                              3.10.0
prometheus_client                        0.20.0
prompt-toolkit                           3.0.42
proto-plus                               1.23.0
protobuf                                 3.20.3
psutil                                   5.9.3
ptyprocess                               0.7.0
pure-eval                                0.2.2
py-spy                                   0.3.14
pyarrow                                  16.1.0
pyasn1                                   0.6.0
pyasn1_modules                           0.4.0
pycosat                                  0.6.6
pycparser                                2.22
pydantic                                 2.7.1
pydantic_core                            2.18.2
Pygments                                 2.18.0
pyOpenSSL                                24.0.0
pyparsing                                3.1.2
PySocks                                  1.7.1
python-dateutil                          2.9.0
python-dotenv                            1.0.1
python-json-logger                       2.0.7
python-multipart                         0.0.9
pytz                                     2024.1
pyviz_comms                              3.0.2
PyWavelets                               1.6.0
PyYAML                                   6.0.1
pyzmq                                    24.0.1
ray                                      2.22.0
ray-cpp                                  2.22.0
referencing                              0.35.1
requests                                 2.31.0
requests-oauthlib                        2.0.0
requests-toolbelt                        0.10.1
retrying                                 1.3.4
rfc3339-validator                        0.1.4
rfc3986-validator                        0.1.1
rich                                     13.7.1
rpds-py                                  0.18.1
rsa                                      4.9
ruamel.yaml                              0.18.6
ruamel.yaml.clib                         0.2.8
ruamel-yaml-conda                        0.15.100
scikit-image                             0.23.2
scikit-learn                             1.4.2
scipy                                    1.13.0
seaborn                                  0.13.2
SecretStorage                            3.3.3
Send2Trash                               1.8.3
setuptools                               69.5.1
shapely                                  2.0.4
shellingham                              1.5.4
six                                      1.16.0
smart-open                               7.0.4
smmap                                    5.0.1
sniffio                                  1.3.1
soupsieve                                2.5
SQLAlchemy                               2.0.30
sqlparse                                 0.5.0
stack-data                               0.6.2
starlette                                0.37.2
statsmodels                              0.14.2
tabulate                                 0.9.0
tenacity                                 8.3.0
tensorboardX                             2.6.2.2
terminado                                0.18.1
textual                                  0.60.0
threadpoolctl                            3.5.0
tifffile                                 2024.5.10
tinycss2                                 1.3.0
tomli                                    2.0.1
tornado                                  6.4
tqdm                                     4.66.4
traitlets                                5.14.3
truststore                               0.8.0
typeguard                                4.2.1
typer                                    0.12.3
types-python-dateutil                    2.9.0.20240316
typing_extensions                        4.11.0
typing-utils                             0.1.0
tzdata                                   2024.1
uc-micro-py                              1.0.3
ujson                                    5.10.0
uri-template                             1.3.0
uritemplate                              3.0.1
urllib3                                  1.26.18
uvicorn                                  0.29.0
uvloop                                   0.19.0
virtualenv                               20.26.2
visions                                  0.7.6
watchfiles                               0.22.0
wcwidth                                  0.2.13
webcolors                                1.13
webencodings                             0.5.1
websocket-client                         1.8.0
websockets                               12.0
wheel                                    0.43.0
widgetsnbextension                       4.0.10
wordcloud                                1.9.3
wrapt                                    1.16.0
xyzservices                              2024.4.0
yarl                                     1.9.4
ydata-profiling                          4.8.3
zipp                                     3.17.0
zstandard                                0.22.0

Description of expected behavior and the observed behavior

After uploading a file or 2 into the widget, the FileInput.value is not overwritten in memory. The expected output should return a list of the file input as a string. See the screenshot below of the bug image As of the current moment, I suspect it's a issue with Google's version of Jupyterlab as when we run the same codeblocks on a a classic jupyter notebook the issue doesn't occur

Complete, minimal, self-contained example code that reproduces the issue

!pip install panel watchfiles -U
!pip install -U jupyterlab
!pip install panel param bokeh jupyter_bokeh -U
import panel as pn
pn.extension()
pn.extension('tabulator')

import pandas as pd
xml_files = pn.widgets.FileInput(multiple=True)
xml_files
print(xml_files.value)

I do not encounter this issue when I run the same code above in a local vscode notebook. I'm not sure if the issue is with GCP or Jupyter as I've upgraded to the latest version of all packages

Chatgpt suggested running this code to listen for any uploads, but it fails

import panel as pn
import time
import threading

# Initialize the Panel extension
pn.extension()

# Create the FileInput widget
file_input = pn.widgets.FileInput(accept='.xml')

# Function to handle file uploads
def handle_file(event):
    print(f"Event new value: {event.new}")  # Debug statement
    if event.new:
        file_name = event.new.filename
        print(f"File name: {file_name}")  # Debug statement
        try:
            file_contents = event.new.read()  # Read file contents
            print(f"File contents: {file_contents.decode('utf-8')}")
        except Exception as e:
            print(f"Error reading file: {e}")
    else:
        print("No file uploaded")

file_input.param.watch(handle_file, 'value')

layout = pn.Column(
    pn.pane.Markdown("## Upload a file"),
    file_input
)

# Display the layout
pn.Row(layout).servable()

# Function to check and print the value of file_input periodically
def check_value():
    for _ in range(10):  # Check 10 times with a 5-second interval
        print(f"file_input.value: {file_input.value}")
        time.sleep(5)

# Run the value check function in a non-blocking way
thread = threading.Thread(target=check_value)
thread.start()

layout

it prints out None

Stack traceback and/or browser JavaScript console output

console.log

Screenshots or screencasts of the bug in action

image

ahuang11 commented 3 weeks ago

Thanks for the detailed report! Just wanted to note that the browser console logs are available on Discourse for anyone viewing this: https://discourse.holoviz.org/t/debugging-fileinput-value-on-google-cloud-vertex-ai-workbench-jupyter/7295/6?u=ahuang11