Commit graph

80 commits

Author SHA1 Message Date
Bailey Powers
3413ca226f
Copyedited Documentation (#2640)
* Copyedited Documentation

Changelog / Overview
Reviewed tutorials\configurations.rst. Edited simple mistakes such as Manim not being capitalized and commas.

Motivation and Explanation: Why and how do your changes improve the library?
My motivation was to start getting involved in the open source community. This improves the library as it increases readability and professionalism.

Links to added or changed documentation pages

Further Information and Comments
Closes #1401

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Luca <30503695+tameTNT@users.noreply.github.com>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Luca <30503695+tameTNT@users.noreply.github.com>
2022-04-15 21:21:45 +00:00
Naveen M K
cddd47ca53
Remove WebGL renderer (#2630)
* Remove WebGL renderer

Fixes https://github.com/ManimCommunity/manim/issues/2629

* Remove occurence of webgl_renderer in CI config

* Fix Dockerfile

* Remove reference to webgl renderer in config docs

* Update poetry lock file

* Remove some scripts related to webgl

* Don't use rich 12.0 version

* Ignore rich 12.0.0

* Fix dependency, it was wrong previously
2022-03-24 08:39:24 +05:30
Laith Bahodi
962c24684a
Added documentation for index_labels. (#2465)
* add example to index_labels

* add to reference_manual

* add to using_text tutorial

* add to using_text tutorial pt_2

* fix some formatting in the rest of the tutorial

* actually add examples + parameters

* make index_labels not bad

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add r-string to beginning of doc

* fix indentation?

* don't try to be clever : fix docs

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2022-01-30 14:49:10 +00:00
AnonymoZ
6a636ff04a
Fixed typo and improved example in building blocks tutorial (#2436)
* Typo plus a code redundancy

Sqaure → Square;  ln 231: self.add(square) [removed]

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-08 07:09:31 +08:00
Darylgolden
ccfea0ff4a
Made improvements to the :doc:configuration tutorial (#2414)
* Attempt to use CI to update translations

* try again

* runs on ubuntu latest

* Try to fix

* again

* try to use PR branch

* that didn't work

* will this work?

* Revert "will this work?"

This reverts commit 1e6543a77f.

* Try a different action

* fix attempt

* another attempt

* Revert "another attempt"

This reverts commit 8965000ac3.

* try again

* automatically generate list of all flags

* remove unrelated change

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* specify dep

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tutorial

Move CLI stuff to the top since it's the most important, slight rewrite, some copyediting

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* slight rephrasing

* make underline long enough

* Revert "Merge branch 'main' into command-output"

This reverts commit e6a9d457d3, reversing
changes made to 3f0137a690.

* Revert "Revert "Merge branch 'main' into command-output""

This reverts commit c823c6eb8f.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-06 14:31:22 +08:00
Steven nguyen
be6c35f8a6
Correct comments (#2385)
I'm just starting out but it seems like only the square is being shown

Also random space added
2021-12-22 23:11:47 +00:00
ask09ok
ddb0395b79
Edited and added new sections to the quickstart tutorial (#2216)
* docs: edits and new sections for quickstart tutorial

* docs: fixed formatting for the magic command link, small misc formatting fixes

* docs: fixing formatting.

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/quickstart.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* docs: Adding suggested review changes, additional sections explaining .animate

* docs: eliminating excess asterisks

* docs: fixing double backspace formatting for inline elements

* docs: fixing one formatting error

Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-11-30 13:47:58 +08:00
mostlyaman
d33650a958
Fixed mistakes in building_blocks (#2230)
* Fixed mistakes in building_blocks

* applied suggestion

Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-11-27 14:55:32 +00:00
Christopher Besch
3a8b8625c7
Added `skip_animations argument to :meth:.Scene.next_section` (#2236)
* fix: removed partial_movie_files

* added documentation

* tests broken; nothing changed?

* tests still fail

* now respecting original skip animations flag

* added basic docs

* added forgotten test

* added skip animations test

* tests broken; nothing changed?

* tests still fail

* now respecting original skip animations flag

* added basic docs

* added forgotten test

* added skip animations test

* fixed some issues

Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
2021-11-01 08:44:41 +01:00
Arcstur
28c61c01ab
Update using_text.rst (#2239)
Removed 'r' from the regular string.
2021-10-30 08:09:08 +08:00
Christopher Besch
7d76cd459d
Fixed Documentation for Sections (#2212)
* feat: added section class

* fix: fixed imports in scene.py

* feat: added section class

* fix: fixed imports in scene.py

* feat: scene file writer update; needs testing

* broken test

* fixed wrong partial movie files

* feat: added animation concatenation for sections

* fix: sections can contains None as partial movie file

* fix: correct section output file names

* fix: removed media folder

* feat: section output able to extract type

* feat: added guarantee_existence tests

* fix: touch file on windows

* fix: touch file on windows

* feat: automatically create control data with --set_test flag

* feat: added tests for sections output folder

* feat: added flag to enable sections

* feat: testing section metadata file

* feat: finished metadata tests; changed enums to be extendable

* fix: removed testing files

* fix: fixed section types

* fix: fixed outdated control data

* fix: fixed simple_scenes.py

* fix: fixed section type documentation example

* feat: added section video metadata to API

* fix: isort should stop destroying the import order for commands.py

* fix: fixed types of section metadata output

* fix: better comments

* ?

* feat: added elaborate test; switched name and type in next_section call

* feat: changed testing terminology: "config" got renamed to "movie metadata"

* fix: removed unicode lambda :<

* fix: fixed control data

* fix: removed test setter

* feat: added tutorial in the documentation

* fix: updated test control data

* fix: fixed double '.' in video tests

* fix: fixed some documentation

* fix: fixed missign JSON file in docs

* fix: implemented proposed changes

* fix: better --save_sections help

* fix: better docstrings

* fix: fixed last docstring...hopefully :>

* feat: custom section output supported

* fix: removed resolved todos

* fix: added debug for movie concatenation back

* fix: removed implemented TODO

* fix: removed doubled log

* fix: changed debug to info log

* fix: fixed log test data

* fix: fixed documentation --save_sections
2021-10-20 11:35:09 +02:00
Christopher Besch
3ce4c133dd
Introduced API for scene sections via :meth:.Scene.next_section (#2152)
* feat: added section class

* fix: fixed imports in scene.py

* feat: added section class

* fix: fixed imports in scene.py

* feat: scene file writer update; needs testing

* broken test

* fixed wrong partial movie files

* feat: added animation concatenation for sections

* fix: sections can contains None as partial movie file

* fix: correct section output file names

* fix: removed media folder

* feat: section output able to extract type

* feat: added guarantee_existence tests

* fix: touch file on windows

* fix: touch file on windows

* feat: automatically create control data with --set_test flag

* feat: added tests for sections output folder

* feat: added flag to enable sections

* feat: testing section metadata file

* feat: finished metadata tests; changed enums to be extendable

* fix: removed testing files

* fix: fixed section types

* fix: fixed outdated control data

* fix: fixed simple_scenes.py

* fix: fixed section type documentation example

* feat: added section video metadata to API

* fix: isort should stop destroying the import order for commands.py

* fix: fixed types of section metadata output

* fix: better comments

* ?

* feat: added elaborate test; switched name and type in next_section call

* feat: changed testing terminology: "config" got renamed to "movie metadata"

* fix: removed unicode lambda :<

* fix: fixed control data

* fix: removed test setter

* feat: added tutorial in the documentation

* fix: updated test control data

* fix: fixed double '.' in video tests

* fix: fixed some documentation

* fix: fixed missign JSON file in docs

* fix: implemented proposed changes

* fix: better --save_sections help

* fix: better docstrings

* fix: fixed last docstring...hopefully :>

* feat: custom section output supported

* fix: removed resolved todos

* fix: added debug for movie concatenation back

* fix: removed implemented TODO

* fix: removed doubled log

* fix: changed debug to info log

* fix: fixed log test data
2021-10-20 10:36:24 +02:00
Evan Boehs
b04f0379f0
Copyedited the configuration tutorial in the documentation (#2131)
* Update configuration.rst

* 2 instances of may, one of might

Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-10-02 12:29:19 +08:00
Ryan McCauley
4831e1dc77
Add opengl support for --format png output
* Add png output support for opengl

* Handle when interactive embed should launch

* Handle when window should be created

* Remove unused import

* Remove confusing field

* Avoid creating window when any format is set

* Revert removing manim import

* Remove second log for interactive_embed

* Add force_window flag

* temp skip tests due to opengl context issue

* Fix context issue

* Try manually closing window in opengl tests

* Test disabling parallel runs

* Test disabling parallel runs

* Try clearing frame buffer on finish

* revert clear

* Skip tests that pass locally but fail windows CI

* Reenable opengl tests

* Remove stdin closed check

* Skip flakey test

* Stop window creation when save_last_frame is set

* Update config path

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
2021-09-28 18:19:22 +01:00
Ryan McCauley
32eda9d66a
Add config to enable opengl wireframe (#2041) 2021-09-16 13:14:29 +00:00
Christopher Besch
ac803e607a
Corrected user-wide config paths for *NIX (#2020)
Tested config in `~/.config/manim/manim.cfg` and `~/config/manim/manim.cfg` on Debian.
The config in `config` doesn't work, while the one in `.config` does.
2021-09-06 15:01:43 +05:30
GameDungeon
94821c10d8
Flake8 Changes + Fixing Warnings (#1968)
* Warning Removal

* Flake Stuff

* HotFix

* Docs Fix

* I'm Dumb

* Docs Fix 2

* Fixing Github Requests

* Fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* quick fix

* Add Deprecation Warning

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Weird Pre Commit Stuff

* Quick Fix

* Quick Fix

* Fix

* Flake Fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-03 13:45:48 -04:00
GameDungeon
446c42d8d3
Deprecated :meth:.VMobject.get_points (#1991)
* Fully Deprecate get_points()

* Version Update
2021-09-02 12:53:45 +02:00
Benjamin Hackl
89bcec8f2f
Reworked installation instructions (#1949)
* move plugins

* plugins in main sidebar

* restructure installation guide

* fix some removed references

* more sphinx fixes

* restructured developer installation, more cleanup

* rename some files

* rewrote MacOS installation instructions

* rewrote the windows installation guide

* cleaned up linux installation instructions

* added a lot of colons

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* improve first paragraph of installation.rst

* move docker and jupyter to separate files

* Copyediting

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* change wording regarding colab env

* copyediting, second pass

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* first mention recommended ffmpeg installation for windows

* move admonition above table of contents

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-08-28 12:50:29 +00:00
Laith Bahodi
f7ed88008b
Add font_size parameter for Tex and Text mobjects. (#1694)
* refactor numbers.py, numbers.py now uses font_size, adjust constants in tex_mobject.py and text_mobject, remove uses of number_scale_value in favour of font_size

* adjust PolarPlane to use font_size instead of scaling

* some of the docs have been changed to use font_size, adjust constant and add font_size to markup text

* accurate scale factors

* code mobject compatibility with font_size

* number_line now takes font_size

* make tests work

* cleanup

* deprecated test raised error, fixed

* typing for NumberLine

* fix misbehaving test

* actually fix set_value

* use native font_size scaling for text_mobject.py

* add constant and adjust BraceLabel

* fix change_label

* drop scale_factor for Title

* add some supers

* maybe fixes import issues

* numberplanetest

* the merge conflict is over and the tests run

* add test for tex_size

* some changes to the docs

* properly deprecate instead of removing

* move deprecations to __init__

* drop the config

* deprecate number_Scale_value

* update version number for deprecation

* adjust test precision

* if TYPE_CHECKING check

* adjust Using Text

* add font_size parameters for numberline and fix bug with decimal_number_config

* make set_value work with opengl

* make kwarg

* fix typo

* another typo

* change dates

* add font_size property for tex_mobjects

* _font_size instead of font_size (prep for prop)

* accidental bugfix, handle separately)

* generalize text2svg

* add font_size property for text_mobject.py

* add check for greater than 0

* Attribute error in dd_labels

* str for attr in hasattr

* rewrite and fix tests

* remove debugging print

* fix error when self.height ==0

* Apply suggestions from code review

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* revert accidental @deprecated change

* fix error in line_spacing

* slight fixes

* use private attribute when checking for font_size in add_labels()

* raise a Value error when font_size < 0 + improve docs

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* deprecate azimuth_label_scale and use more descriptive deprecation message

* wrong number of dots for an import

* add font_size property for decimalmobject

* return to using public attribute

* remove redundant constant

* add comment

Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-08-26 20:16:55 -04:00
asjadaugust
f5f4edfc90
fix: substrings_to_isolate in doc (#1918) 2021-08-15 18:11:32 +02:00
Jephian Lin
682b6993c6
Update an example to use .animate instead of ApplyMethod (#1880)
* revise ApplyMethodExample by using .animate method

* manually break lines into appropriate length

* revise the Animation run time example

* add chained example and revise explanation in AnimateExample

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* fix indentation in RunTime code

* change indent from 3 spaces to 4 spaces throughout

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-08-08 21:04:56 +08:00
sahilmakhijani
ba23bc5510
Custom Animation Docs (#1739)
* Add custom animation section to docs building blocks page

* Add CountingScene Example for Custom Animation Docs

* Fix "upto" typo

* Scale DecimalNumber

* Small tweaks to Custom Animation example

* Add updater to decimal number to remain always in center in CountingScene

* Rename mob to number in CountingScene

* Add reference classes, methods and functions to Custom Animation Example

* Make the quality medium for Custom Animation Example

* Add the explaination for Custom Animation Example

* Remove rate functions reference

* Minor tweaks to Custom Animation Example

* Incorporate review changes

* Add more explaination to the logic behind calculating value

* Incorporate review changes

* Fix references

* Remove quality medium

* Add docstring to interpolate_mobject method of Animation class

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-01 08:29:21 +00:00
Laith Bahodi
044889e742
Add window_size flag. (#1760)
* Add window_size flag

* parse window_size in utils.py

* remove from str_keys

* messy fix...
2021-08-01 01:01:02 -04:00
Vinh H. Pham (Vincent)
ce7d67b109
update misleading -h flag in document (#1819) 2021-07-20 21:55:17 +08:00
Udeshya Dhungana
6602c84ff0
remove unused variables (#1813) 2021-07-19 21:27:16 +00:00
Taektiek
5746993de4
Fixed spelling mistake (#1806)
* Fixed spelling mistake 

Fixed spelling mistake for changing the font of latex text. It used to be "tricker" but has been fixed to "trickier"

* Update docs/source/tutorials/using_text.rst

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
2021-07-16 15:51:06 -04:00
Mohammad Al-Fetyani
13369e3ad5
Fix not being able to set some CLI flags in the configuration file (#1763)
* Default options to None

* Fix tests. transparent cannot be set in the config file

* Remove unused "png_mode" flag

* update
2021-07-09 06:33:08 -07:00
Laith Bahodi
32827aca73
Improve positioning and size of the OpenGL window. (#1728)
* add flags, vastly improved window positioning and size

* drop window_size flag, doesnt seem necessary

* fix weird formatting

* add error checking and full direction input for window_position

* use ValueError instead

* update docs, remove unnecssary code

* improve descriptions

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-07-02 13:09:57 +00:00
Naveen M K
a7e492d703
Add a tutorial for using :class:~.Text and :class:Tex (#1510)
* Add a tutorial for using :class:`~.Text`

* Add gradient example

* Add disabling ligature tutorial
Move PangoMarkup to reference of MarkupText

* Add docs of using Colors, t2g and t2c
Also, fix issues issues between Color and Colour

* use save_last_frame whereever necessary

* More docs on Fonts, weights, slants

* fix docs built

* fix build

* typo

* fix build

* Try fixing the build

* Fix indent

* Fix indent

* Change class name

* Fix link

* Update examples

* Add small desc about MarkupText

* Basic LaTeX tutorials

* typo: seperately ==> separately

* add a missing `

* Update using_text.rst

* Update using_text.rst

* Update tex_mobject.py

* Update using_text.rst

* Update tex_mobject.py

* Update using_text.rst

* Update using_text.rst

* Apply suggestions from code review

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Update docs/source/tutorials/using_text.rst

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* change title

* add ref to tutorial

* Fix small error

* Fix syntax

* Apply suggestions from code review (1st)

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/tutorials/using_text.rst

* try to get link syntax right

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-06-29 17:26:23 +02:00
Jan-Hendrik Müller
02f66e518a
Tweak tutorial example (#1617)
* tweak example

* tweak example

Co-authored-by: Naveen M K <naveen@syrusdark.website>
2021-06-06 22:22:03 +05:30
Mehmet Ali Özer
054d91544e
docs: Fix tip content of command-line arguments (#1620)
manim -h is not valid, Try 'manim render --help' for help.
2021-06-04 01:23:13 -07:00
Nikhil Garuda
05e4556381
Copyedited Documentation (#1509)
* Finished copyedititng

* Made some more changes

* Update plugins.rst

* Fixed scoop link

* Capped the character limit to 80

* Declare *.npz *.wav *.png as binary (#1560)

* Revert "Capped the character limit to 80"

This reverts commit c7e57faea5.

* Capped the character limit to 80 again

* Made it small r

Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
2021-05-26 17:52:09 +08:00
Skaft
199424d713
Remove $ from tutorial commands (#1445) 2021-05-03 10:47:23 +05:30
Nikhil Garuda
7c8c1cb1d9
Grammatical error corrections in documentation (#1360)
* Grammatical error correction of docs

* Update contributing.rst

* Update development.rst

* Update development.rst

* Update development.rst

* Update for_dev.rst

* Update docs/source/installation/for_dev.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update plugins.rst

* Update reporting_bugs.rst

* Update a_deeper_look.rst

* Update configuration.rst

* Update quickstart.rst

* Update building_blocks.rst

* Update testing.rst

* Update testing.rst

* Update versions.rst

* Update a_deeper_look.rst

* Update quickstart.rst

* Update quickstart.rst

* Update development.rst

* Update development.rst

* Update versions.rst

* Update versions.rst

* Update a_deeper_look.rst

* Update building_blocks.rst

* Change of complier and output format in
 "InCodeTexTemplate" to the defaults

* Reverted back

* Change of Complier and Output format

The Complier and Output format of class InCodeTexTemplate has been changed to the defaults (latex and .dvi)

* Update customtex.py

* Update building_blocks.rst

* Update building_blocks.rst

* Update a_deeper_look.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: kilacoda <65204531+kilacoda@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-04-19 15:44:32 -07:00
kolibril13
5abe8a9469
Added tutorial chapter on coordinates of an mobject (#1210)
* added tutorial chapter on mobject

* Update docs/source/tutorials/building_blocks.rst

* added transform example and updated position example

* extra line

* Apply suggestions from code review

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Update docs/source/tutorials/building_blocks.rst

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-04-15 20:40:28 +02:00
Naveen M K
7417fbc599
Blacken docs (#1323)
this hook will check formats in docs code blocks and format it using black
2021-04-13 11:57:27 +05:30
Ricky Chon
875f2d1f6d
Notify user if they are using an outdated version of Manim (#1237)
* Notify user if local version is outdated

Running the `manim` command will display the version number as green
if it is the latest detected on GitHub. Otherwise, display the version
number as red and let the user know that a newer version is available.

* Black formatting

* Add requests dependency

* Switch to PyPi API since it's not ratelimited

* Add CLI option for notifying local outdated build

Manim will notify user if local installation is outdated, after
rendering. This feature is enabled by default, but could be turned off
in config.

* Update notify_outdated_version instructions

* Please the flake

* Add documentation to configuration.rst

* Update poetry.lock

* Update option punctuation

* No need to inform users if they're up to date

* Move variable to within method

* Remove unused import

* Update dependencies

* Update outdated version message

* Run isort

* Fix typo

* Set `--notify_outdated_version` default to `None`

Flag value by default is None so config file will determine the value.
If flag is used then value is True.

* Convert CLRF to Unix newline LF (cleaner diffs)

* Remove argument check for outdated version

Too verbose, value should be configured via config

* Handle requests exceptions

* Update manim/cli/render/commands.py

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use f-strings for logger warnings

* Update poetry.lock

* Update manim/cli/render/commands.py

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>

* Update manim/cli/render/commands.py

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>

* Move print statements within try block

* Except JSONDecodeError only

* Update manim/cli/render/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/render/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Don't raise exceptions, log in debug

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
2021-04-11 20:59:48 +05:30
Peilonrayz
b74ea538b2
Fix mean/meant typo (#1319) 2021-04-11 20:47:29 +05:30
Darylgolden
65fa84ce06
Fix typo on the Quickstart page in documentation(#1313) 2021-04-11 15:15:51 +05:30
Jason Villanueva
a87bb28484
Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013)
* Added click dependency and command structure

* Refactored code for separation of concerns

* Shortened plugins command to plugin, added render options

* first draft for render -h

* First successful render using click

* Cleaned main

* Moved flush_cache to option, ran black

* Removed argparse logic, scattered print statements

* corrected tests, all passing

* merge upstream

* fixed test with click's clirunner

* Fixed doctest configuration.rst

* Temporarily add in main_utils

* Removed main_utils.parse_args, used ManimConfig.digest_args

* fixed progress bar

* Fix jupyter

* black

* Fixed incorrectly merged merge conflict

* updated README command.png image

* updated configuration.rst expected output

* Fixed test_plugins and config_file expected type

* Refixed the jupyter fix

* Apply 3/5 suggestions

Remove stray print

Improve readability of test code

Added module docs for the subcommands

* Updated `main` to `manim` for tests

* Forced `file` positional argument to be Path type

* Fixed main -> manim

* Added libpango to linux dependency

* Updated poetry.lock

* Changed configuration.rst test

* Fixed test_a_flag test

minor space issue

added media_width to configuration.rst

* Fixed fps flag in Cairo rendering

* Fixed more outdated rst in sphinx docs

Removed default for fps option, always overwrote quality

Fixed doctest control_data

* Fixed more incorrect rst orderings

* Update tests/test_commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Added suggestions

* Removed unused imports

* Reverted entry point back to main

* Update manim/_config/default.cfg

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Adjusted ipython_magic's call to the entry_point

* Converted frame_rate to int if integer

* run black

* Fixed doctest

* Fixed issue with command name from CliRunner

* Fixed multiple video windows opening from upstream merge

* to black or not to black

* Added deprecation warning to render subcommand

* warning instead of warn

* Applied Naveen's suggestions

* Made `manim render` show the help page

* Update manim/cli/render/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/cfg/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/cfg/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/plugins/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Addressed some style changes

* add back in write_to_movie temporarily for OpenGL support

* Removed sound flag, deprecated use_opengl_renderer, added renderer option

* revert webgl_renderer_path removal

* Fixed cfg export

Fixed readme usage of CLI

* Flake8/black

* Fixed bug in setting renderer choice

* Removed log message due to default option

Removed default option of background color

Fixed write_to_movie flag default

* Fix log_to_file tests

* Make '-c' option for config_file, not background_color

* print colored version always

* Remove -v = --version shorthand, conflicts with verbosity

* Use subprocess.run instead of Click's CliRunner for stdout

* Refactor cli/render to use Cloup instead of click-option-group

1) There's a new file for each option group
2) render is now a cloup.Command, not a Group

Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)

* fixed issue

* fixed tests

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* added tests

* imrpoved test

* fixed logic

* added new test

* check if the file has been outputed

* added test when caching is enabled

* fixed tests on windows

* black

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update tests/assert_utils.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>

Added :ref_methods: to the manim directive (#1209)

* fix manim_directive for methods

* added ref_methods to Angle example

* black

* added new ref_methods references

* sort out ref_functions vs ref_methods in examples.rst

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)

* fixed issue

* fixed tests

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* added tests

* imrpoved test

* fixed logic

* added new test

* check if the file has been outputed

* added test when caching is enabled

* fixed tests on windows

* black

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update tests/assert_utils.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>

Added :ref_methods: to the manim directive (#1209)

* fix manim_directive for methods

* added ref_methods to Angle example

* black

* added new ref_methods references

* sort out ref_functions vs ref_methods in examples.rst

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Fixed unnecessary args dict

* Fixed bug that changed caching hashing result

* Revert doctest logic for fps filename output

Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Gianluca Gippetto <gianluca.gippetto@gmail.com>
2021-04-01 23:53:07 -07:00
Lionel Ray
39351b0202
Deprecation: Deprecated ShowCreation in favor of Create, added logger warning (#1124)
* Deprecated ShowCreation in favor of Create

* Fixed Black formatting and logger error

* Fixed relative import issue of logger

* Renamed CreateThen.. calls to previous names

* Fixed __all__ classes, fixed Create inheritance

* Update manim/animation/creation.py

Move logger warning to class initializer

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-03-23 16:13:59 +01:00
Darylgolden
1d9fdaf629
New Feature: Added media_width option to the config to change the default width of gif+video output in Jupyter notebooks (#1074)
* Added new 3D mobjects: mostly taken from dor2727's previous incomplete PR

* Added Torus from 3b1b manim

* Added tests

* Remove personal test file

* Ran black

* Added test for Arrow3D

* Apply suggestions from code review

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Black formatting

* Added documentation, tests failing?

* Added documentation, tests fixed

* Rename self.height to self._height

* Removed unnecessary property.

* Fixed tests

* Apply suggestions from code review

Co-authored-by: friedkeenan <friedkeenan@protonmail.com>

* Black

* Apply suggestions from code review

Simple changes for now

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Apply suggestions from code review

Possibly breaking changes

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: friedkeenan <friedkeenan@protonmail.com>

* Update manim/mobject/three_dimensions.py

Fix indentation

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Update manim/mobject/three_dimensions.py

Fix indentation

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Fix things

* Change parameter names for Torus

* Added get_direction method for Cylinder and fixed direction setting

* retrigger checks

* Changed max-width to 375px

* Resolve merge conflict

* Attempted to add config for jupyter_width

* Apply suggestions from code review

Attempt to fix

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>

* Fixed config

* Updated test data.

* Change name in cfg file to match ManimConfig

* Added media_width support to iPython Image

* Revert "Change name in cfg file to match ManimConfig"

This reverts commit 57080a91be.

* Revert "Added media_width support to iPython Image"

This reverts commit 0391bfb223.

* Revert "Revert "Change name in cfg file to match ManimConfig""

This reverts commit 7d499fa43c.

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: friedkeenan <friedkeenan@protonmail.com>
2021-03-21 23:21:28 +01:00
Devin Neal
83dd82b6d3 doctests 2021-03-06 15:50:20 -08:00
Devin Neal
4748f3c730 Merge remote-tracking branch 'origin/master' into moderngl 2021-03-04 18:06:21 -08:00
Sergii Penner
6b8ef88ebf
Remove duplicate word 'vector' (#1065) 2021-02-28 15:27:34 +05:30
Devin Neal
448d10b590 Animate Arc with OpenGL 2021-02-19 20:41:01 -08:00
Anoop Hallur
0b15360096
Bugfix: fix link to wikipedia vector graphics page (#1031) 2021-02-14 18:32:17 +01:00
KingWampy
554f829848
Enhancement: Add manim version to CLI output, append version name for generated gif+png, add version to metadata of rendered videos (#984)
* Initial commit

* black formatting

* Changes

* Test to see if it works

* Changes

* Update manim_directive.py

* Update manim_directive.py

* Update manim_directive.py

* Update manim_directive.py

* Update scene_file_writer.py

* Always forget black..

* Change path separator

* Changes

* Add blank line in option block

* Update scene_file_writer.py

* Update metadata messages

* No longer add version to video names

* Fix test_dash_as_filename

* Update __init__.py
2021-02-10 16:56:05 +01:00
Devin Neal
57f228b8eb
Js tweening (#952)
* Add .animate attribute to mobjects

* Return function from _AnimationBuilder.__getattr__

* black

* Pass background color to JS renderer

* Handle default case

* Pass background color to JS renderer

* Remove line that came back in the merge

* Handle FrameServer case

* Use community colors by default

* Allow for chaining _AnimationBuilder

* Trying to do tweening

* Add _AnimationBuilder.build()

* Apply docs patch

* Pass tweening data

* Pass ID for ImageMobject

* Fix Wait bug, add FadeIn tween data

* Remove unused proto fields

* Remove unused proto field

* Optimize RPCs

* Handle frame skipping better

* Refactoring

* Ignore PreviewMode.ALL

* Remove preview mode

* Don't send tween data for wait

* Opacity fixes

* Add comments

* Simplify protos

* Add tween data for wait

* Add todo

* Serialize when updating

* Prepare to send tweened and non-tweened mobject IDs

* Pass updater information to javascript

* Add log

* Rename js_* -> webgl_*, remove WebGLScene

* rename js->webgl in workflow file

* Update doctest

* Update .gitattributes

* Remove try/except for webgl imports

* Step through animations using updaters with fixed frame rate

* Add --webgl_updater_fps flag

* Configuration test

* configuration test

* JS->WebGL

* Add install message
2021-01-29 08:33:49 -08:00