Marc Skov Madsen

Results 435 comments of Marc Skov Madsen

Just for reference I tried changing to the Jedi language server. But the result was the same ![image](https://user-images.githubusercontent.com/42288570/149611605-f31a33c8-4e5a-4c68-ac14-1d668045ef21.png) ![image](https://user-images.githubusercontent.com/42288570/149611577-881ff538-b00c-4fbc-965c-50c9bf4ee368.png)

I have the code to create stub `.pyi` files for all Parameterized classes in Panel. https://github.com/holoviz/panel/pull/3132 (param_stubgen.py file) I just need the functionality to add the relevant imports to the...

This is also strange. WHY DOES THE DICT BECOME A LIST OF CONSTRUCTION? ```bash $ python 'issue_object_selector.py' [1, 2] 2 {'Third': 3, 'Fourth': 4} Third (.venv) ``` ```python import param...

Ahh. I can see on construction of ObjectSelector that it changes the objects dict to a list ```python def __init__(self,default=None,objects=None,instantiate=False, compute_default_fn=None,check_on_set=None,allow_None=None,**params): if objects is None: objects = [] if isinstance(objects,...

#### Workaround A workaround is ```python import param OBJECTS_ALL = {"First":1, "Second": 2} class App(param.Parameterized): value = param.ObjectSelector(default=1, objects=OBJECTS_ALL) @param.depends("value", watch=True) def update(self): print(self.param.value.objects) print(self.value) app=App() app.value=2 object_dict = {"Third":...

By the way @philippjfr . The one thing I don't like about `param` is actually the order of the key, value in the objects dict. Its simply the opposite of...

Please Consider Creating a new `Selector` that fixes both these problems. I guess there are a lot of dependencies out there unfortunately.

There is a user reporting the same problem here https://github.com/holoviz/param/issues/331

Thanks @jbednar for taking the time. I will have to spend a little time to digest and maybe respond. Have a feeling I actually don't agree. But maybe I just...

A user is experiencing this problem here https://discourse.holoviz.org/t/replacing-options-dictionary-doesnt-replace-keys-choices-as-expcected/1244/6