hot to fallback to default fallback of matplotlib #168
-
Hello, I'm reaching out to inquire if there's a way to adjust settings to make the default action of the Normally, in a The issue arose after updating my packages on my Mac. Specifically, For reference, here is the source fallback for matplotlib. here's a small example: import matplotlib.pyplot as plt
fig, ax = plt.subplots()
fruits = ['apple', 'blueberry', 'cherry', 'orange']
counts = [40, 100, 30, 55]
bar_labels = ['red', 'blue', '_red', 'orange']
bar_colors = ['tab:red', 'tab:blue', 'tab:red', 'tab:orange']
ax.bar(fruits, counts, label=bar_labels, color=bar_colors)
ax.set_ylabel('fruit supply')
ax.set_title('Fruit supply by kind and color')
ax.legend(title='Fruit color')
plt.show() another question here is the settings: vim.g.molten_auto_open_output = false
vim.g.molten_virt_text_output = true
vim.g.molten_virt_lines_off_by_1 = false
vim.g.molten_wrap_output = true |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. With just the settings you have listed you should see virtual text everywhere. I suspect that you've copied a bit of code from these docs which toggles some settings when you enter a For the matplot lib thing, molten currently behaves the same way that Jupyter Lab does. Both apps just render the image. If you want to see images in a browser, you can do that with the I'll note that command will open your images in your operating systems default image viewer, which might not necessarily be your browser. But hopefully that is still good enough. |
Beta Was this translation helpful? Give feedback.
Yes. With just the settings you have listed you should see virtual text everywhere. I suspect that you've copied a bit of code from these docs which toggles some settings when you enter a
.py
file. So just removing that bit of code should let it work the way you want.For the matplot lib thing, molten currently behaves the same way that Jupyter Lab does. Both apps just render the image.
If you want to see images in a browser, you can do that with the
:MoltenImagePopup
command and