Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Jun 8, 2024
1 parent 23315ca commit 1529a81
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,26 @@ NOTE: This is work-in-progress and not yet ready for public. There isn't much cu
ft = "python",
},
},
config = function()
require("python_import").setup {
extend_lookup_table = {
import = {
-- "pickle",
},
import_as = {
-- np = "numpy",
-- pd = "pandas",
},
import_from = {
-- tqdm = "tqdm.auto",
-- nn = "torch",
},
opts = {
-- Example 1:
-- Default behaviour for `tqdm` is `from tqdm.auto import tqdm`.
-- If you want to change it to `import tqdm`, you can set `import = {"tqdm"}` and `import_from = {tqdm = nil}` here.
-- If you want to change it to `from tqdm import tqdm`, you can set `import_from = {tqdm = "tqdm"}` here.
extend_lookup_table = {
import = {
-- "tqdm",
},
}
end,
import_as = {
-- These are the default values. Here for demonstration.
-- np = "numpy",
-- pd = "pandas",
},
import_from = {
-- tqdm = nil,
-- tqdm = "tqdm",
},
},
},
},
"rcarriga/nvim-notify", -- optional
```
Expand Down

0 comments on commit 1529a81

Please sign in to comment.