__getattr__ and __setattr__ can be done with:
__getattr__ and
__setattr__
The thing is that _ is a markdown formating character. This is a markdown reference for more details.
Sorry about that. I only familiar with the basics of git, but the general command line procedure is,
git add filename git commit -m"Comment about file changes" git push origin master
There are a few ways to increase the efficiency of this process if you are adding multiple files like using .
to add all files that have changed. However, that can have unintended consequences like inadvertently adding files that contain private information. You can add a filter to prevent this by creating a .gitignore
file with the filenames you don't ever want to be added.
I have only ever used git on a Linux system which allows one additional alternative, git gui
which is a gui interface for git. I think there is on Windows but I don't know about GCloud.
There are some descriptions of the git terminal commands here. Unfortunately, I have never found a simple tutorial on the basic use of git. Github does have help here which may be more useful than just the command descriptions.
As for a script, this is something I have only heard about other people doing. I'm not sure how you would make it work without using an SSH key to avoid having to enter a password when pushing to master. I have an aversion to SSH keys on git since I am not sure how to make that work across multiple computers with the same account, so I don't have any experience with those.
I'm not exactly sure how you are using OneNote (I personally don't use it much), but Visual Studio Code sort of lets you do this already. This has the caveat that your brainstorming is done in only text.
You could also try this draw.io plugin for Jupyter. which would let you have diagrams/drawing in Jupyter.
If neither of these (or anything else you can find) fits your need, then yes it would be a good idea to write something to fit your need.
I have a working ipython, installed with pip install ipython
. No problem whatsoever.
Emacs I never need, but installed nonetheless, no problem. The official installer works just fine.
Use http://scoop.sh with PowerShell:
scoop install python; pip install ipython
scoop bucket add extras; scoop install emacs
EDIT: Formatting.
For firefox there is an extension called languageTool, which can be used to spell check a text selection. It is not ideal, but it is handy until a more native solution comes around.
We use plotly offline all the time with python to generate HTML docs we send to people.
There is also http://bokeh.pydata.org/en/latest/
(Not python aside) If you want free(ish) online check out R shiny dashboards and if you want to host your own shiny
Also instructions for installing other Python kernels.
Summary:
> For Python 2 (in IPython3), install IPython on Python 2 as well, and run 'ipython2 kernelspec install-self --user'.
and
> For Python 3 (in IPython2), install IPython on Python 3 as well, and run 'ipython3 kernelspec install-self --user'.
Atom-Hydrogen is great to insta run what was coded in the PyCharm. But you need to sync them first:
file-watcher Atom plugin (by lwblackledge): helps simultaneously open and edit files in two editors. To use it with PyCharm you should disable PyCharm "safe write" (Settings → Appearance and Behavior → System Settings → Synchronization → Use "safe write").
Yes, a slice (start:end) references all items starting from start (including start) upto end NOT including end. As cramur explained, other than having more dimensions, the indexing of numpy arrays works the same way as indexing python lists and therefor it would make sense to read up a little about this subject.
Here is an article about it on scipy: http://docs.scipy.org/doc/numpy-1.10.1/reference/arrays.indexing.html and here is the general documentation on python http://www.tutorialspoint.com/python/python_lists.htm
I haven't seen that done before but you could save the text to a file then run the grep.
with open("myfile.txt","r") as f: f.write(mystring.lower()) !grep -i searchme myfile.txt
But I would go with re.
import re find = re.compile(r'searchme') find.findall(mystring.lower()) Of course, someone else may know how and if so I would really like to know too.
After a little search, I found this,
mystring.lower().find("searchme")
What's stopping you from upgrading to 14.04? Since it's the next long term release it is very stable. Additionally, maintaining IPython in it is much simpler since all the resent dependencies are already in the repos. If you have a solid internet connection you shouldn't even have to do a fresh install, just an upgrade.
Unless you are referring to the IPython release cycle, which in that case, for 14.04, Julian Taylor maintains ppa:jtaylor/ipython which includes the most recent version of IPython. There are some packages for 12.04, but they are older releases only.
I should note that I've only used his repo off and on because when I skipped 13.04 I discovered he only seems to maintain it for the most recent Ubuntu release.
You can also use a markdown table which will also allow you to include LaTeX equations (i.e. $\pm 0.2$
). If you are converting to a LaTeX pdf later this might be a good option since nbconvert already handles markdown.
Not sure what you mean by installing the javascript. Installed plotly by doing:
pip install plotly
If you mean, how I installed my entire Python / Jupyter Notebook stack, I installed a virtual environment using miniconda3. Then installed the needed packages.
You can right click windows explorer -> open in shell/cmd.
I use git-bash and windows terminal which is now amazing. It works great with ipython -i
.
You can set a default directory, regardless of which terminal and shell you use.
I'd love to have that too. The closest that I can find is something called Pythonista for iOS:
http://omz-software.com/pythonista/
Not quite the full IPython/Jupyter, but a step in the right direction.
Dash allows you to easily build interactive data visualization web applications. It is from the plotly team, so provides best-in-class interactive visualization widgets.