I want to use the explode models function in the animationSlicerMorph,but I need to install the easing-functions package. this picuture means no response!Is there any other way to install the package?
Normally it should install automatically. What do you get when you type
import easing_functions
into the python console.
Did you try
pip_install(‘easing_functions’)
Thank you for your answer,yeah,it should install automatically.however,when I click OK,the whole software will pause,no responce for long time.The other ways don’t work.
Seems like auto-formatting changed the closing (’) apostrophe, it is not the same character as the opening one (hence the syntax error). Please try again with quotation mark ("")
pip_install(“easing-functions”)
@lassoan, actually I think the discourse is the culprit here. I type double quotes appear correct as I type here “” (i.e., both identical). But in preview they change to different characters (an opening and a closing one).
I find this behavior very annoying where we exchange code snippets. Can it be disabled? I don’t recall this before…
Oh,my God,yes,your are right!
thank you very much!
It is not discourse’s fault. Outlook, word, latex, etc. will all convert your quotes if you don’t indicate that it is preformatted/code/verbatim text. You just need to learn the syntax. Fortunately, discourse uses markdown, which is now the standard that is used everywhere to specify formatting in plan text. You only need to learn this once and then can include code snippets correctly almost everywhere.
Code text inline
Plain text input:
Use backtick for entering `code (note the "quotes") text`. These are "quotes" outside.
Rendering:
Use backtick for entering code (note the "quotes") text
. These are “quotes” outside.
Code block
Plain text input:
Use triple-backtick for code blocks:
```python
# Specify the language (Python, console, cpp,...) for syntax highlighting.
pip_install('easing_functions')
```
Rendering:
Use triple-backtick for code blocks:
# Specify the language (Python, console, cpp,...) for syntax highlighting.
pip_install('easing_functions')
Note that blockquote (that is used for quoting formatted text by prepending >
) has similar gray shading behind the text, but it is not for verbatim formatting.