James Brock

Results 280 comments of James Brock

There is an alternative `Dockerfile` here that you might try. https://github.com/IHaskell/ihaskell-notebook This `Dockerfile` does not install anything in `/home/jovyan`.

You can install packages with Stack in this IHaskell Docker image. https://github.com/IHaskell/ihaskell-notebook#installing-haskell-packages

The `PropsDict` should be replaced with some kind of immutable row type in which most items have a default value. https://docs.python.org/3/library/typing.html#typing.TypedDict https://docs.python.org/3/library/stdtypes.html#frozenset https://discuss.python.org/t/introduce-a-typedmapping-analog-to-typeddict-but-frozen/51905 Maybe the answer is **PEP 705 –...

https://web.archive.org/web/20240420131629/https://gallois.cc/blog/qimage/

I've been using `QFileDialog.getExistingDirectory` kind of like this: ```python dataset_directory, dataset_directory_set = ed.use_state(Path("")) ``` ```python def on_dataset_directory_add(): strpath: str = QFileDialog.getExistingDirectory(caption="Choose a directory") if len(strpath) > 0: path = Path(strpath)...

There are also other `QFileDialog.get*` functions for other situations. https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QFileDialog.html#static-functions

One annoying problem which I would like to solve is that there is no Qt dialog which allows us to pick multiple folders.

I have found that this code from Stackoverflow works in Edifice for a multi-selection directory picker. https://stackoverflow.com/questions/38252419/how-to-get-qfiledialog-to-select-and-return-multiple-folders/38255958#38255958

The `size_policy` should be part of style props. [QSizePolicy](https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QSizePolicy.html)