Skip to content

Commit

Permalink
Merge pull request 3b1b#523 from 3b1b/imports
Browse files Browse the repository at this point in the history
Create manimlib.imports
  • Loading branch information
eulertour committed May 3, 2019
2 parents be7b259 + db1a89d commit 1da1859
Show file tree
Hide file tree
Showing 164 changed files with 164 additions and 164 deletions.
2 changes: 1 addition & 1 deletion active_projects/aliquot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


def get_factors(n):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eola2/cramer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

X_COLOR = GREEN
Y_COLOR = RED
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eola2/determinant_puzzle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class WorkOutNumerically(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eola2/gauss.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fractions import Fraction

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from functools import reduce


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/bayes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

#revert_to_original_skipping_status

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/bayes_footnote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from active_projects.eop.bayes import IntroducePokerHand

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/birthday.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

class Birthday(Scene):

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter0.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

class Introduction(TeacherStudentsScene):

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter0/intro.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

class Introduction(TeacherStudentsScene):

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/all_sequences.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class ShuffleThroughAllSequences(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/area_model_bayes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class IllustrateAreaModelBayes(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/area_model_erf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from old_projects.eoc.chapter8 import *

import scipy.special
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/area_model_expectation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/brick_row_scene.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/entire_brick_wall.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *
from active_projects.eop.chapter1.brick_row_scene import BrickRowScene

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/intro.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class Chapter1OpeningQuote(OpeningQuote):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/just_randy_flipping_coin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class JustFlipping(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/million_flips.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class GenericMorphBrickRowIntoHistogram(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/prob_dist_visuals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/quiz_result.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *
from active_projects.eop.independence import *

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/show_proportion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class ProbabilityRect(VMobject):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/show_uncertainty_darts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/show_uncertainty_dice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class ShowUncertaintyDice(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/show_uncertainty_disease.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/stacking_coins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/think_about_coin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *

class RandyThinksAboutCoin(PiCreatureScene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/various_intro_visuals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusable_imports import *
from active_projects.eop.combinations import *
from active_projects.eop.independence import *
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter1/what_does_probability_mean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class WhatDoesItReallyMean(TeacherStudentsScene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/chapter2/permutation_grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

def print_permutation(index_list):

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/combinations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

#revert_to_original_skipping_status

Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/independence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from scene.scene import ProgressDisplay
import scipy
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/pascal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from once_useful_constructs.combinatorics import *

nb_levels = 5
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/reusables/brick_row.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.eop.reusables.eop_helpers import *
from active_projects.eop.reusables.eop_constants import *
from active_projects.eop.reusables.upright_coins import *
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/reusables/histograms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from random import *

def text_range(start,stop,step): # a range as a list of strings
Expand Down
2 changes: 1 addition & 1 deletion active_projects/eop/what_does_probability_mean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

class WhatDoesItReallyMean(TeacherStudentsScene):

Expand Down
2 changes: 1 addition & 1 deletion active_projects/holomorphic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class ComplexAnalysisOverlay(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/pendulum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.shared_constructs import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/phase_space.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.shared_constructs import *
from active_projects.ode.part1.pendulum import Pendulum

Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/pi_scenes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.shared_constructs import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/shared_constructs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


Lg_formula_config = {
Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/staging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.shared_constructs import *
from active_projects.ode.part1.pendulum import Pendulum
from active_projects.ode.part1.pendulum import ThetaVsTAxes
Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part1/wordy_scenes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.shared_constructs import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/fourier_series.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
# import scipy


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/heat_equation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part2.shared_constructs import *


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/pi_scenes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part2.wordy_scenes import WriteHeatEquationTemplate


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/shared_constructs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

TIME_COLOR = YELLOW
X_COLOR = GREEN
Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/staging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from active_projects.ode.part1.staging import TourOfDifferentialEquations


Expand Down
2 changes: 1 addition & 1 deletion active_projects/ode/part2/wordy_scenes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


class WriteHeatEquationTemplate(Scene):
Expand Down
2 changes: 1 addition & 1 deletion active_projects/shadows.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


# Helpers
Expand Down
2 changes: 1 addition & 1 deletion example_scenes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

# To watch one of these scenes, run the following:
# python -m manim example_scenes.py SquareToCircle -pl
Expand Down
2 changes: 1 addition & 1 deletion manimlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def parse_cli():
def get_module(file_name):
if file_name == "-":
module = types.ModuleType("input_scenes")
code = "from big_ol_pile_of_manim_imports import *\n\n" + sys.stdin.read()
code = "from manimlib.imports import *\n\n" + sys.stdin.read()
try:
exec(code, module.__dict__)
return module
Expand Down
2 changes: 1 addition & 1 deletion big_ol_pile_of_manim_imports.py → manimlib/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Rather than having a large pile of "from <module> import *" at the top of every such
script, the intent of this file is to make it so that one can just include
"from big_ol_pile_of_manim_imports import *". The effects of adding more modules
"from manimlib.imports import *". The effects of adding more modules
or refactoring the library on current or older scene scripts should be entirely
addressible by changing this file.

Expand Down
2 changes: 1 addition & 1 deletion manimlib/stream_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ def __new__(cls):
variables.update(locals())
shell = code.InteractiveConsole(variables)
shell.push("manim = Manim()")
shell.push("from big_ol_pile_of_manim_imports import *")
shell.push("from manimlib.imports import *")
shell.interact(banner=manimlib.constants.STREAMING_CONSOLE_BANNER)
2 changes: 1 addition & 1 deletion old_projects/256.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from old_projects.crypto import sha256_tex_mob, bit_string_to_mobject, BitcoinLogo

Expand Down
2 changes: 1 addition & 1 deletion old_projects/WindingNumber.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

import warnings
warnings.warn("""
Expand Down
2 changes: 1 addition & 1 deletion old_projects/WindingNumber_G.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from old_projects.uncertainty import Flash
from old_projects.WindingNumber import *
Expand Down
2 changes: 1 addition & 1 deletion old_projects/alt_calc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *


def apply_function_to_center(point_func, mobject):
Expand Down
2 changes: 1 addition & 1 deletion old_projects/basel/basel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python


from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from once_useful_constructs.light import *

Expand Down
2 changes: 1 addition & 1 deletion old_projects/basel/basel2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-


from big_ol_pile_of_manim_imports import *
from manimlib.imports import *
from once_useful_constructs.light import *

import warnings
Expand Down
2 changes: 1 addition & 1 deletion old_projects/bell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from big_ol_pile_of_manim_imports import *
from manimlib.imports import *

from tqdm import tqdm as ProgressDisplay

Expand Down

0 comments on commit 1da1859

Please sign in to comment.