HNHacker News
TopNewBestAskShowJobs

carreau

1,089 karma · joined December 12, 2012

[ my public key: https://keybase.io/mbussonn; my proof: https://keybase.io/mbussonn/sigs/9CMg2KRb3kpQqr2nxJWMc749spQUHV4KlEskZsh1OZA ]
submissionscomments
carreau··on Inkscape 1.2
Seeing your edit: Then please consider dropping a kind word to the dev: https://gitlab.com/inkscape/inbox/-/issues/7050
carreau··on The new and upgraded Framework Laptop
Thoughts of whether the marketplace could be used for "certified" refurbished older components ?
carreau··on Show HN: Warp, a Rust-based terminal
Have you seen https://acko.net/blog/on-termkit/ from 2011 ? Comments from around this time on various site may give you insight.
carreau··on Show HN: Datagridxl2.js – Fast Excel-like data table library
One million cell made me though of https://lumino.readthedocs.io/en/latest/examples/datagrid/in... that has a "trillion" cell demo :-) All the best.
carreau··on IPython 8.0
Because now IPython will automatically reformat you code while you type it with black ?

It should though fail gracefully if it can't import black.

carreau··on IPython 8.0
Thanks, fun fact, IPython is one of the first project as started to contribute to when doing my PhD and one of my first "serious" python programs.

See my first PR https://github.com/ipython/ipython/pull/776.

GitHub lost some of the original (non-rebased) commits, but I had semicolon at the ends of the lines.

And yes I stayed because it was "Fun". Hope to see more contributions !

carreau··on IPython 8.0
Thanks, it's a late Christmas present if you celebrate it. Or any other relevant occasions.
carreau··on IPython 8.0
It's probably feasible, I need to look into how the suggestion is stored and display it. You seem to have looked into it more than I, do you want to open an issue with your thoughts ?

I'm also hopping to integrate with https://pypi.org/project/friendly-traceback/ at some point.

carreau··on IPython 8.0
It's like when programmers put their black hoodies on to become hackers, and type so fast they swap G and H. Like you've seen Mr Robot ?
carreau··on IPython 8.0
Only a few of these https://www.geopoliticalmonitor.com/wp-content/uploads/2019/...
carreau··on IPython 8.0
First, yes, this is a common question. IPython does not try to deal with that, it's just the executing engine.

Notebooks, do not have to be stored in ipynb form, I would suggest to look at https://github.com/mwouts/jupytext, and notebook UI is inherently not design for multi-file and application developpement. So training humans will always be necessary.

Technically Jupyter Notebook does not even care that notebooks are files, you could save then using say postgres (https://github.com/quantopian/pgcontents) , and even sync content between notebooks.

I'm not too well informed anymore on this particular topic, but there are other folks at https://www.quansight.com/ that might be more aware, you can also ask on discourse.jupyter.org, I'm pretty sure you can find threads on those issues.

I think on the Jupyter side we could do a better job curating and exposing many tools to help with that, but there are just so many hours in the day...

I also recommend I don't like notebook from Joel Grus, https://www.youtube.com/watch?v=7jiPeIFXb6U it's a really funny talk, a lot of the points are IMHO invalid as Joel is misinformed on how things can be configured, but still a great watch.

carreau··on IPython 8.0
Thanks ! And indeed, fixed on the repo, should autodeploy in a few minutes.
carreau··on IPython 8.0
Well, jupyter_console itself is a frontend/CLI, it starts another process (ipykernel) and communicate with it using ZMQ. IPykernel itself use IPython as a library to execute code.

It might be easier to send code to an ipykernel started with jupyter_console, as it already has an eventloop and is listening to sockets, that trying to talk to an IPython. Plus using ZMQ you'll have richer messages than just text.

carreau··on IPython 8.0
NP, thank you for pointing out my mistake. It's a good feeling to see HN being nice.
carreau··on IPython 8.0
Yes, bpython is good. I have plans to make the documentation better (https://github.com/jupyter/papyri) but so far I only have a few hours per week I can spend on IPython. Jedi from david halter should also get some love for better completion.
carreau··on IPython 8.0
May I suggest to look at https://eradman.com/entrproject/ ? It's like watch but triggers only when it detect file changes.
carreau··on IPython 8.0
Yeah, mostly I lack time to catch up with Jonathan Slenders works, and have stronger backward compatibility requirements. b=But ptpython and pyipython are both great.

I should also look into Rich and Textual

https://bpython-interpreter.org/ is also another alternative python shell, and of course https://xon.sh

carreau··on IPython 8.0
Thanks, in particular for your understanding with Python 3.8. It's in huge part to give a signal to businesses that that can/should move forward, and to give reasons for "smaller" projects with fewer devs to also remove support for older Python which can be a burden to maintain.

I don't use VS Code myself, but I think the team is doing in increasingly better job, Microsoft is just a huge beast. I would also love for some IPython feature to get into Core Python. But that might just take time as I don't think many Core Python Dev do that much interactive coding, and thus don't see that much the interest of doing so.

BTW it's uppercase I and P, we don't want to be in trouble with a billion dollar fruit company, even if we predate their use of iPxxxx

carreau··on IPython 8.0
You likely want to use something like https://github.com/jupyter/jupyter_console, or ipykernel directly to have a persistent python process. One issue is that shells are text based, so you have to do a lot of serialisation/deserialisation.

But honestly at that point I would just look into https://xon.sh/ that blends Python and Shell together. IPython and Xonsh devs are friends, so if you need anything from one into the other it's likely doable.

carreau··on IPython 8.0
Happy to help
carreau··on IPython 8.0
There is the %autoreload magic but it is limited, it will often fail to reload compiled modules like numpy. So there is not a single answer, sometime it works, other times it does not.
carreau··on IPython 8.0
AST in a more general concept see https://en.wikipedia.org/wiki/Abstract_syntax_tree, it basically turn your text into a tree where f(a) + f(b) is `call(plus, call(f, a), call(f,b))`. Using https://github.com/alexmojaki/stack_data we can say "the error occurred in `a`, while trying to call `f`, while calling `plus`, get the range in the original text and make them yellow.
carreau··on IPython 8.0
Thanks ! Hope you will enjoy.
carreau··on IPython 8.0
Fixed. That what I get by doing N things at the same time. Sorry about that, you can downvote me.
carreau··on IPython 8.0
Thanks ! I invite you to also read the 7.x what's new as well. The debugger got a few improvements sponsored by D.E Shaw group (hiding and skipping frames for example). Hope to have you contribute some code at some point, if not already.
carreau··on IPython 8.0
It's actually already present in 7.x, just opt-in. And you should be able to hook any formatter you want, black just appear to be popular.
carreau··on IPython 8.0
And I'm in the comments if you have any questions/feedback.
carreau··on MIT Scheme on Apple Silicon
Well they do say that they need rosetta just to compile, that once compiled it "works", though I agree it's still too shallow of an article.
carreau··on MIT Scheme on Apple Silicon
I find it a bit disingenuous to say that it runs on apple silicon if you need to modify source code. Also it's not because it compiles and starts that it's fully functional.

The main MIT Scheme page say that it's not possible and need significant efforts, so I would be curious to get a description as to why one claim it's impossible while the other show that it compiles and starts.

Are the original authors too much against M1/Apple and justify themselves ? Or does compiling on M1 sort-of works until you hit more complex features that will crash or misbehave ?

carreau··on Penrose: From mathematical notation to beautiful diagrams
Ah, my bad, I think it should be higher and the google form should likely be removed. It's also not visible enough in https://penrose.ink/. I guess I've been conditioned by many website, where if I see a email field I think I have to signup to try...
← PreviousPage 2 of 8Next →