echo Hello World!
https://docs.manim.community/en/stable/examples.html
docker pull manimcommunity/manim
https://manim-video-generator.sevalla.app/
https://try.manim.community/
https://mybinder.org/
manim documentation
https://docs.devtaoism.com/docs/html/contents/_2_basic_mobjects.html#vmobject-attributes
data race video
from manim import *
config.background_color = RED
config.frame_rate = 25
config.frame_size = [1200,500] # [WIDTH, HEIGHT]
# config.transparent = True
# RENDER AS IMAGE: ----------------
config.format = "png"
config.save_last_frame = True
# config.transparent = True
# REDER AS GIF: -------------------
config.format = "gif"
股票行情
https://efinance.readthedocs.io/en/latest/install.html
https://livingcharts.com/app/edit/pr1ocsyuf0SRGlDssPLs
https://app.flourish.studio/visualisation/24950498/edit
colab : https://colab.research.google.com/github/Isi-dev/Google-Colab_Notebooks/blob/main/Wan2_1_14B_I2V_GGUF_Free.ipynb#scrollTo=wo8w6tKerJMJ
!pip install efinance
import efinance as ef
stock_code = '300414'
ef.stock.get_quote_history(stock_code)
# Export the specific day data to an Excel file
specific_day_data.to_excel('specific_day_stock_data.xlsx', index=False)
import efinance as ef
stock_code = '300414'
ef.stock.get_quote_history(stock_code)
print("Specific day stock data exported to 'specific_day_stock_data.xlsx'")
def construct(self):
nl = NumberLine(include_numbers=True)
selector = Triangle(fill_opacity=1,color=RED).scale(0.2).rotate(PI/3)
dn = DecimalNumber(0)
update_grp = VGroup(selector, dn)
def update_vgrp(vgrp):
s,d = vgrp
s.next_to(nl.n2p(dn.get_value()),UP,buff=0)
d.next_to(selector,UP,buff=0.1)
update_grp.add_updater(update_vgrp)
self.add(nl,update_grp) # <-- add grp complete, not each element
# Not use self.add(nl, selecttor, dn)
self.wait(0.5)
self.play(
ChangeDecimalToValue(dn, 4),
run_time=2
)
self.wait(0.5)
self.play(
ChangeDecimalToValue(dn, -1),
run_time=2
)
self.wait(0.5)
self.play(
ChangeDecimalToValue(dn, -4),
run_time=2
)
self.wait(0.5)
self.play(
ChangeDecimalToValue(dn, 7),
run_time=3
)
self.wait(0.5)
from manim import *
config.background_color = RED
config.frame_rate = 25
config.frame_size = [1200,500] # [WIDTH, HEIGHT]
# config.transparent = True
# RENDER AS IMAGE: ----------------
config.format = "png"
config.save_last_frame = True
# config.transparent = True
# REDER AS GIF: -------------------
config.format = "gif"