Jupyter-PHP icon indicating copy to clipboard operation
Jupyter-PHP copied to clipboard

output nearly unreadable for `print_r()` command

Open FinlayDaG33k opened this issue 7 years ago • 3 comments

Hii there,

I've tried using your notebook, but already at the first moment of using it, I found a little inconvenience: screenshot

I wonder if this could be solved soon? Cheers

FinlayDaG33k avatar Nov 22 '17 08:11 FinlayDaG33k

Hi @FinlayDaG33k , I'll check it. I'm sorry for being slow responding here. In fact, I'm currently working on a "workspaces" feature (to manage composer dependencies in a truly isolated way).

When I'll finish with the workspaces work, I'll check this issue.

castarco avatar Dec 05 '17 12:12 castarco

P.D.: I think that we could "overwrite" the print_r function (creating another one available in the current namespace) producing a nicer output. But this is not a solution for people who calls the function using its fully qualified name \print_r .

castarco avatar Dec 05 '17 12:12 castarco

Bug also seems to affect var_dump(). image

For the sake of, I've also tried var_export(), however, it doesn't seem to affect that? image

also noticed that both var_dump() and var_export() end with null, while print_r() ends with true.

FinlayDaG33k avatar Dec 05 '17 20:12 FinlayDaG33k