-
-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When I have an scene with a certain number of elements I get error OSError: [Errno 36] File name too long: when I do manim-slides convert Graph graph.html.
Version
version 4.8.3
Platform
Linux Ubuntu 22.04
Screenshots
No response
Additional information
Code to reproduce the error:
import networkx as nx
from manim import *
from manim_slides import Slide
# Creating a random graph with 6 nodes and few edges
G = nx.gnp_random_graph(6, 0.5, seed=0)
# Obtaining the 2D coordinates of the graph nodes
pos = nx.spring_layout(G)
class Graph(Slide):
def construct(self):
circles = {}
# Printing the 2D coordinates of the nodes
for node, coord in pos.items():
print("Node:", node, "Coordinates:", coord)
circle = Circle(radius=.25)
circles[node] = circle
circle.set_fill(WHITE, opacity=1.0)
circle.set_stroke(RED, width=.5)
position = coord[0] * RIGHT + coord[1] * UP
print(f"{position=}")
circle.shift(position)
self.play(Create(circle))
edges = []
for edge in G.edges:
dot_0 = circles[edge[0]]
dot_1 = circles[edge[1]]
line = Line(dot_0.get_center(), dot_1.get_center(), color=PURPLE)
edges.append(line)
self.play(Create(line))
self.pause()
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working