From 78257cc386ecb2e0597f805b3d45dc4f005639b1 Mon Sep 17 00:00:00 2001 From: Andy Ganse Date: Sun, 21 Dec 2025 17:37:53 -0800 Subject: [PATCH 1/3] fix utcfromtimestamp() deprecation warning and tweak readme --- README.md | 30 +++++++++++++++--------------- python/vim_mlflow.py | 6 ++++-- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index bc0d5de..bc97bf7 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,11 @@ steps). `pip install pynvim` #### 4. Load Vim-mlflow in your Vim/NVim resource file: -- Add the plugin to your plugin manager, e.g. using Vundle add +- You can do "manually", e.g. extract zipfile into `~/.vim/bundle/vim-mlflow`, + or for NVim add `set runtimepath+=~/.vim/bundle/vim-mlflow` + to `~/.config/nvim/init.vim`. +- Or you can add the plugin to your plugin manager, e.g. using Vundle add `Plugin 'aganse/vim-mlflow'` to your resource file and run `:PluginInstall`. -- Or could do manually, e.g. in NVim's `~/.config/nvim/init.vim` could load - via: `set runtimepath+=/Users/aganse/Documents/src/python/vim-mlflow` #### 5. Set your config settings in your Vim/NVim resource file: - Set your MLflow tracking URI. Fyi the default is `http://localhost:5000`, @@ -160,6 +161,17 @@ CI workflows): - `make codestyle` lints the Vimscript in `plugin/` with `vint` and the Python in `python/` with `flake8`. +#### Related repos you may find useful to populate an MLflow installation with test data +The following tools are useful in their own right to get an MLflow instance up +and running quickly and to get some modeling up and running quickly. +But in this case you may find them convenient to populate test contents into +a temporary MLflow tracking server for dev/test purposes - they created the +contents seen in screencast above: +* [aganse/docker_mlflow_db](https://github.com/aganse/docker_mlflow_db): + ready-to-run MLflow server with PostgreSQL, AWS S3, Nginx +* [aganse/py_torch_gpu_dock_mlflow](https://github.com/aganse/py_torch_gpu_dock_mlflow): + ready-to-run Python/PyTorch/MLflow-Projects setup to train models on GPU + ## Legacy/older versions Legacy/older versions of this plugin can be accessed by git checking out an @@ -177,18 +189,6 @@ release (we'll just keep adding to this table as more releases come out). | v1.0.0 (this version)| 2.12.0, 2.19.0, 3.6.0 | vim 9.1, nvim v0.11.5 | -## Related repos by aganse -Vim-mlflow is part of a group of tools that you might find useful together (but -all are separate tools that can be used independently). In particular the -following two tools allow to populate test contents into a temporary MLflow -tracking server for dev/test purposes - they're the contents seen in screencast -above: -* [aganse/docker_mlflow_db](https://github.com/aganse/docker_mlflow_db): - ready-to-run MLflow server with PostgreSQL, AWS S3, Nginx -* [aganse/py_torch_gpu_dock_mlflow](https://github.com/aganse/py_torch_gpu_dock_mlflow): - ready-to-run Python/PyTorch/MLflow-Projects setup to train models on GPU - - ## Making the animated screen-shot gif * Install [rust](https://rust-lang.org/tools/install) (`curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`) * Install [asciinema](https://github.com/asciinema/asciinema) (`cargo install --locked --git https://github.com/asciinema/asciinema`) diff --git a/python/vim_mlflow.py b/python/vim_mlflow.py index 77bba08..bb2c074 100644 --- a/python/vim_mlflow.py +++ b/python/vim_mlflow.py @@ -3,7 +3,7 @@ import json import math import os -from datetime import datetime +from datetime import datetime, timezone from urllib.request import urlopen import mlflow @@ -113,7 +113,9 @@ def getRunsListForExpt(mlflow_tracking_uri, current_exptid): visible_rows = [] for run in runs[beginrun_idx:endrun_idx]: if run.info.start_time: - st = datetime.utcfromtimestamp(run.info.start_time / 1e3).strftime( + st = datetime.fromtimestamp( + run.info.start_time / 1e3, tz=timezone.utc + ).strftime( "%Y-%m-%d %H:%M:%S" ) else: From edc4a4b8e23c637f50590d5bdeb8cdb09994ffa7 Mon Sep 17 00:00:00 2001 From: Andy Ganse Date: Sun, 21 Dec 2025 17:38:57 -0800 Subject: [PATCH 2/3] bump version to v1.0.2 --- README.md | 2 +- VERSION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc97bf7..4c8bc36 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![codestyle-python-flake8](https://github.com/aganse/vim-mlflow/workflows/codestyle-python-flake8/badge.svg)](https://github.com/aganse/vim-mlflow/actions/workflows/codestyle-python-flake8.yml) [![codestyle-vimscript-vint](https://github.com/aganse/vim-mlflow/workflows/codestyle-vimscript-vint/badge.svg)](https://github.com/aganse/vim-mlflow/actions/workflows/codestyle-vimscript-vint.yml) ![licence](https://img.shields.io/badge/license-MIT-blue.svg) -![version](https://img.shields.io/badge/version-1.0.1-blue.svg) +![version](https://img.shields.io/badge/version-1.0.2-blue.svg) `vim‑mlflow` is a lightweight Vim/NVim plugin that lets you browse and interact diff --git a/VERSION b/VERSION index 7dea76e..6d7de6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 +1.0.2 From a904ccc41653e1c769a63afd7871b75a626850c3 Mon Sep 17 00:00:00 2001 From: Andy Ganse Date: Sun, 21 Dec 2025 17:46:45 -0800 Subject: [PATCH 3/3] minor readme tweak --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c8bc36..3e0669b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ![version](https://img.shields.io/badge/version-1.0.2-blue.svg) -`vim‑mlflow` is a lightweight Vim/NVim plugin that lets you browse and interact +`Vim‑mlflow` is a lightweight Vim/NVim plugin that lets you browse and interact with MLflow experiments, runs, metrics, parameters, tags, and artifacts directly in your Vim editor. It opens a dedicated sidebar and a detail pane so you can explore data without leaving the terminal, even allowing you to plot metric