-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lets-plot in marimo: the import * problem #1126
Comments
To work around marimo restrictions you can: Import the lets_plot module and then use dot-notation:
This is equivalent to a "star" import. However, lets-plot doesn't seem to work well in marimo notebooks out-of-the-box, according to this report: #1018. |
You either need to have |
If I close the cell with If I call
In my case, |
Apparently marimo has its own system for handling and displaying outputs, which differs from traditional Jupyter notebooks. |
Thank you very much for your help. You have developed a very nice package. I will pass that information to them. |
try this, which works in my mamrio.
|
@signup2k, Thanks. Unfortunately, your code does not work in my case. I get the following error:
If I remove |
I am so sorry for this typo...It's actually |
I'm sorry, but your code doesn't work. Can you provide a full-fledged MWE that I can use to replicate it? |
actually, it's quite simple...
|
If the You might need to check the browser with marimo running, whether it correctly load |
@signup2k , thank you very much for your help. It works very well. Sorry for bothering you again, but how do I import the function
Thanks again. |
Since, we Try |
Thanks for helping. I had tried I got the error:
|
@VivaldoMendes |
You need to modify this code. For example, let
|
Hi @alshan and @signup2k, I now know what my problem was: I did not have the CairoSVG library on my Python installation. I had Kaleido and could export any format (pdf, SVG, png) when using other plotting packages. So, I could not figure out that I needed this particular package. With the most recent marimo version (0.8.2), when I tried to save a plot produced by lets-plot as a PDF file, marimo spit out the following alert:
Problem is solved. Thanks for helping. |
Hi,
I need to use a reactive notebook in Python, so I am playing with
marimo.py
. I also tried producing some plots usinglets-plot
.Unfortunately, when I tried the first line, marimo spells out:
import * is not allowed in marimo.
Do you have an example of how to proceed with lets-plot in order to avoid the import star problem?
Thanks
The text was updated successfully, but these errors were encountered: