You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the crate prettytable-rs in evcxr_jupyter, however I cannot get it to work. I think the problem is that even though the crate name is prettytable-rs, the library is only called prettytable (you use extern crate prettytable;).
Writing :dep prettytable-rs = "0.7" prints
can't find crate for `prettytable_rs`
on the terminal. Trying extern crate prettytable; results in the error
error: no matching package named `prettytable` found
being shown in the Jupyter notebook.
The text was updated successfully, but these errors were encountered:
Thanks for filing this. I didn't know it was possible to rename a library like that. It looks like it's possible to get the crate name by running "cargo metadata" after adding the dependency to Cargo.toml. e.g.:
So that would be one option to fix the :dep command.
As Celti mentioned on #21, we probably want to think about how this will look once 2018 is stable.
I suppose separating :dep and extern crate would fix this, albeit at the cost of users having to write both for every crate they import. Then later "use" instead of "extern crate".
I tried to use the crate
prettytable-rs
in evcxr_jupyter, however I cannot get it to work. I think the problem is that even though the crate name isprettytable-rs
, the library is only calledprettytable
(you useextern crate prettytable;
).Writing
:dep prettytable-rs = "0.7"
printson the terminal. Trying
extern crate prettytable;
results in the errorbeing shown in the Jupyter notebook.
The text was updated successfully, but these errors were encountered: