Param File Selector basic path not updated

I used example from Marc’s replies on similar post.
I have one selector and file selector defined in parametrized class. According to selected municipality (from the selector) i will find absolute path to the folder that is starting point from where i Could select some files.
The problem is that FileSelector is not updated after selection in the selector.
In attachment is ipynb file.Untitled21.ipynb (49.2 KB)
Thanks,
Goran

Additionally I find out that is the same situation when using only one Param File Selector. The code bellow also not working (to change folder).

Maybe I missing something?

import panel as pn
import param
pn.extension()

class Streets(param.Parameterized):
OP = param.MultiFileSelector()

view = param.Parameter()

def __init__(self, **params):
    super().__init__(**params)
    
    self.view = self._create_view()

def _create_view(self):
    
    panel_left = pn.Param(
        self, 
        parameters=["OP"],
        widgets={
            'OP': {'widget_type': pn.widgets.FileSelector, 'path':'G:\\'}}
        )
    
    
    print('OP = ',self.OP)
    
    return pn.Column(panel_left)

Streets().view.servable()

Hi @gorkir

I tried looking at your script. It works for me like in the video below. From what you write I do not understand what the problem is. Can you elaborate? What steps do you take? What would you expect to happen?

Hi Marc,
thanks for your reply. As you can see on picture bellow on the right side i use widget FileSelector with path E:\NIPP\NIPP_Data that exist on my computer. The widget show aall files with defined pattern in that folder and i can go deeper in subfolders.
The left side of the picture shows parametrized class and when call the class, File selector shows path (C:\Users\User) instead G:\ which I defined as target folder. In this can go deeper in the subfolders but i can’t go to my target folder G:.


I don’t know what is the problem (bug or something else)
Bellow is conda list of packages on my computer:

packages in environment at C:\Users\User\miniconda3:

Name Version Build Channel

altair 4.1.0 pypi_0 pypi
argon2-cffi 20.1.0 py36he774522_1
async_generator 1.10 py36_0
attrs 20.2.0 py_0
backcall 0.2.0 py_0
blas 1.0 mkl
bleach 3.2.1 py_0
bokeh 2.2.3 pypi_0 pypi
branca 0.4.1 pypi_0 pypi
brotlipy 0.7.0 py36he774522_1000
bzip2 1.0.8 he774522_0
ca-certificates 2020.10.14 he931aee_0
cartopy 0.17.0 py36h5ae9855_1
certifi 2020.6.20 pyhd3eb1b0_3
cffi 1.14.3 py36h7a1dbc1_0
cftime 1.2.1 py36h2a96729_0
chardet 3.0.4 py36_1003
click 7.1.2 py_0
click-plugins 1.1.1 py36_0
cligj 0.7.0 py36h9f7ea03_0
cloudpickle 1.6.0 py_0
colorama 0.4.4 py_0
colorcet 2.0.2 py_0 pyviz
conda 4.9.1 py36h9f7ea03_0
conda-package-handling 1.7.2 py36ha391c2e_0
console_shortcut 0.1.1 4
contextvars 2.4 py_0
cryptography 3.1 py36h7a1dbc1_0
curl 7.67.0 h2a8f88b_0
cycler 0.10.0 pypi_0 pypi
cytoolz 0.11.0 py36he774522_0
dask 2.17.2 py_0
dask-core 2.17.2 py_0
datashader 0.11.0 py_0 pyviz
datashape 0.5.4 py36_1
decorator 4.4.2 py_0
defusedxml 0.6.0 py36_0
descartes 1.1.0 pypi_0 pypi
distributed 2.30.0 py36he931aee_0
entrypoints 0.3 pypi_0 pypi
expat 2.2.10 ha1f67b1_2
fastparquet 0.4.1 py36h2a96729_0
fiona 1.8.4 py36h22081e2_0
folium 0.11.0 pypi_0 pypi
freetype 2.10.4 h5b497f6_0
freexl 1.0.5 hfa6e2cd_0
fsspec 0.8.3 py_0
gdal 2.3.3 py36hdf43c64_0
geopandas 0.8.1 pypi_0 pypi
geos 3.7.1 h33f27b4_0
geoviews 1.8.1 py_0 pyviz
geoviews-core 1.8.1 py_0 pyviz
hdf4 4.2.13 hf3d92eb_2
hdf5 1.10.4 h7ebc959_0
heapdict 1.0.1 py36_0
holoviews 1.13.5 py_0 pyviz
holoviz 0.11.6 py_0 pyviz
hvplot 0.6.0 py_0 pyviz
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 py_0
immutables 0.14 py36he774522_0
importlib-metadata 2.0.0 py_1
importlib_metadata 2.0.0 1
intel-openmp 2020.2 254
ipykernel 5.3.4 py36h5ca1d4c_0
ipython 7.16.1 py36h5ca1d4c_0
ipython-genutils 0.2.0 pypi_0 pypi
ipython_genutils 0.2.0 py36_0
ipywidgets 7.5.1 py_1
jedi 0.17.2 py36_0
jinja2 2.11.2 py_0
joblib 0.17.0 pypi_0 pypi
jpeg 9b he27b436_2
jsonschema 3.2.0 py_2
jupyter 1.0.0 py36_7
jupyter_client 6.1.7 py_0
jupyter_console 6.2.0 py_0
jupyter_core 4.6.3 py36_0
jupyterlab_pygments 0.1.2 py_0
kealib 1.4.7 h07cbb95_6
kiwisolver 1.3.0 pypi_0 pypi
krb5 1.16.4 hc04afaa_0
libboost 1.67.0 hd9e427e_4
libcurl 7.67.0 h2a8f88b_0
libgdal 2.3.3 h10f50ba_0
libiconv 1.15 hc4a7105_7
libkml 1.3.0 he5f2a48_4
libnetcdf 4.6.1 h411e497_2
libpng 1.6.37 h2a8f88b_0
libpq 11.2 h3235a2c_0
libsodium 1.0.18 h62dcd97_0
libspatialindex 1.8.5 h6538335_2
libspatialite 4.3.0a hc36aec2_19
libssh2 1.9.0 h7a1dbc1_1
libtiff 4.1.0 h56a325e_1
libxml2 2.9.10 h85530e8_3
libxslt 1.1.34 he774522_0
llvmlite 0.31.0 py36ha925a31_0
locket 0.2.0 py36h3eabf40_1
lxml 4.6.1 py36hfdc6ac5_0
lz4-c 1.9.2 h62dcd97_1
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markdown 3.3.2 py36he931aee_0
markupsafe 1.1.1 py36he774522_0
matplotlib 3.3.2 pypi_0 pypi
matplotlib-base 3.1.3 py36h64f37c6_0
menuinst 1.4.16 py36he774522_1
mistune 0.8.4 py36he774522_0
mkl 2020.2 256
mkl-service 2.3.0 py36hb782905_0
mkl_fft 1.2.0 py36h45dec08_0
mkl_random 1.1.1 py36h47e9c7a_0
msgpack-python 1.0.0 py36h74a9793_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py36_0
munch 2.5.0 py_0
nbclient 0.5.1 py_0
nbconvert 6.0.7 py36he931aee_0
nbformat 5.0.8 py_0
nest-asyncio 1.4.2 pypi_0 pypi
netcdf4 1.4.2 py36h812ae01_0
notebook 6.1.4 py36he931aee_0
numba 0.48.0 py36h47e9c7a_0
numpy 1.18.1 py36h93ca92e_0
numpy-base 1.18.1 py36hc3f5095_1
olefile 0.46 py36_0
openssl 1.1.1h he774522_0
owslib 0.18.0 py_0
packaging 20.4 py_0
pandas 1.0.3 py36h47e9c7a_0
pandoc 2.11 he931aee_0
pandocfilters 1.4.3 pypi_0 pypi
panel 0.10.1 pypi_0 pypi
param 1.10.0 py_0 pyviz
parso 0.7.1 pypi_0 pypi
partd 1.1.0 py_0
pcre 8.44 ha925a31_0
pickleshare 0.7.5 pypi_0 pypi
pillow 8.0.1 py36h371c38d_0
pip 20.2.4 py36he931aee_0
plotly 4.12.0 pypi_0 pypi
powershell_shortcut 0.0.1 3
proj4 5.2.0 ha925a31_1
prometheus_client 0.8.0 py_0
prompt-toolkit 3.0.8 py_0
prompt_toolkit 3.0.8 0
psutil 5.7.2 py36he774522_0
pycosat 0.6.3 py36he774522_0
pycparser 2.20 py_2
pyct 0.4.8 py_0 pyviz
pyct-core 0.4.8 py_0 pyviz
pyepsg 0.4.0 py36_0
pygments 2.7.2 pypi_0 pypi
pyjstat 2.2.0 pypi_0 pypi
pykdtree 1.3.1 py36h8c2d366_2
pyodbc 4.0.30 pypi_0 pypi
pyopenssl 19.1.0 py_1
pyparsing 2.4.7 py_0
pyproj 2.6.1.post1 pypi_0 pypi
pyqt 5.9.2 py36h6538335_0
pyrsistent 0.17.3 py36he774522_0
pyshp 2.1.2 py_0
pysocks 1.7.1 py36_0
python 3.6.12 h5500b2f_2
python-dateutil 2.8.1 py_0
python-snappy 0.5.4 py36ha925a31_0
pytz 2020.1 py_0
pyviz_comms 0.7.6 py_0 pyviz
pywin32 227 py36he774522_1
pywinpty 0.5.7 py36_0
pyyaml 5.3.1 py36he774522_1
pyzmq 19.0.2 pypi_0 pypi
qt 5.9.7 vc14h73c81de_0
qtconsole 4.7.7 py_0
qtpy 1.9.0 py36_0
requests 2.24.0 py_0
retrying 1.3.3 pypi_0 pypi
rise 5.6.1 py36_0
rtree 0.9.4 py36h21ff451_1
ruamel_yaml 0.15.87 py36he774522_1
scikit-learn 0.23.2 pypi_0 pypi
scipy 1.5.3 pypi_0 pypi
send2trash 1.5.0 pypi_0 pypi
setuptools 50.3.0 py36he931aee_1
shapely 1.6.4 py36h222a598_0
sip 4.19.8 py36h6538335_0
six 1.15.0 py_0
snappy 1.1.8 h33f27b4_0
sortedcontainers 2.2.2 py_0
sqlite 3.33.0 h2a8f88b_0
tbb 2020.0 h74a9793_0
tblib 1.7.0 py_0
terminado 0.9.1 pypi_0 pypi
testpath 0.4.4 py_0
threadpoolctl 2.1.0 pypi_0 pypi
thrift 0.11.0 py36h6538335_0
tk 8.6.10 he774522_0
toolz 0.11.1 py_0
tornado 6.0.4 py36he774522_1
tqdm 4.50.2 py_0
traitlets 4.3.3 py36_0
typing_extensions 3.7.4.3 py_0
urllib3 1.25.11 py_0
vc 14.1 h0510ff6_4
vega-datasets 0.8.0 pypi_0 pypi
vs2015_runtime 14.16.27012 hf0eaf9b_3
wcwidth 0.2.5 py_0
webencodings 0.5.1 pypi_0 pypi
wheel 0.35.1 py_0
widgetsnbextension 3.5.1 py36_0
win_inet_pton 1.1.0 py36_0
wincertstore 0.2 py36hcdd9a18_0
winpty 0.4.3 4
xarray 0.15.1 py_0
xerces-c 3.2.3 ha925a31_0
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
zeromq 4.3.2 ha925a31_3
zict 2.0.0 py_0
zipp 3.4.0 pyhd3eb1b0_0
zlib 1.2.11 h33f27b4_4
zstd 1.4.5 h04227a9_0

Best regards
Goran