Hey! I tried installing coconut through "pypy3 -mpip install coconut" and, despite the install looking like it went well, "coconut -h" isn't recognized as a command.
I'm an absolute beginner in both pypy3 and coconut, so feel free to correct me.
PATH
environment variable. See: https://datatofish.com/add-python-to-windows-path/
pypy3 -m coconut -h
.
Beginner here!
Looking forward to using Coconut but am stumped by something simple.
I'm trying to unpack my parameters (key, value) passed into the map function:
{"A": 1, "B": 2, "C": 3}.items() |*> map$((key, value) -> value) |> list |> print
This works but is "uglier":
{"A": 1, "B": 2, "C": 3}.items() |> map$(key_value -> key_value[1]) |> list |> print
[1, 2, 3]
@GianpieroCea Saw your question about data science.
I haven't seen any but I will say that, barring the lack of LSP that keeps me mostly using coconut for prototyping in the notebook, i use coconut constantly for data science. I love what it's done for the maintainability of my code, as well.
So with that, though I've avoided using coconut for codebases that require collaboration (since not many folks can write/read it right away), I would love to start a coconut-for-data-science tutorial.
Been learning/using jupyter book and that could be a great way to do something fast and pretty. let me know if you want to join a repo where we can plan out e.g. key contents and case studies, and I can help adding code based on my irl experience.
I'm trying to setup coconut inside Databricks and came across a bug when trying to use the coconut magics:
TypeError: run_cell() missing 1 required positional argument: 'raw_cell
`
However, looking at the backtrace it is clear that the positional argument was given ipython.run_cell(compiled, shell_futures=False)