GithubHelp home page GithubHelp logo

scipy / scipy-cookbook Goto Github PK

View Code? Open in Web Editor NEW
461.0 53.0 180.0 31.32 MB

Scipy Cookbook

Home Page: https://scipy-cookbook.readthedocs.io/

License: Other

Python 5.35% Jupyter Notebook 94.00% C 0.36% Lasso 0.10% MATLAB 0.06% SWIG 0.09% Cython 0.04%
ipython-notebook scientific scipy-stack examples jupyter-notebook notebook python

scipy-cookbook's Introduction

https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A https://img.shields.io/pypi/dm/scipy.svg?label=Pypi%20downloads https://img.shields.io/conda/dn/conda-forge/scipy.svg?label=Conda%20downloads

SciPy (pronounced "Sigh Pie") is an open-source software for mathematics, science, and engineering. It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and more.

SciPy is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines, such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are quick to install, and are free of charge. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers. If you need to manipulate numbers on a computer and display or publish the results, give SciPy a try!

For the installation instructions, see our install guide.

Call for Contributions

We appreciate and welcome contributions. Small improvements or fixes are always appreciated; issues labeled as "good first issue" may be a good starting point. Have a look at our contributing guide.

Writing code isn’t the only way to contribute to SciPy. You can also:

  • review pull requests
  • triage issues
  • develop tutorials, presentations, and other educational materials
  • maintain and improve our website
  • develop graphic design for our brand assets and promotional materials
  • help with outreach and onboard new contributors
  • write grant proposals and help with other fundraising efforts

If you’re unsure where to start or how your skills fit in, reach out! You can ask on the forum or here, on GitHub, by leaving a comment on a relevant issue that is already open.

If you are new to contributing to open source, this guide helps explain why, what, and how to get involved.

scipy-cookbook's People

Contributors

alexemg avatar benjimin avatar billtubbs avatar biogeek avatar bmaranville avatar cassiasamp avatar chryss avatar clem-starsky avatar evertrol avatar j-bowhay avatar josephcslater avatar kotmorderca avatar lzkelley avatar mathemusician avatar mckib2 avatar mdhaber avatar mpastell avatar nicoguaro avatar nmayorov avatar pv avatar quintusdias avatar reptilianbrain avatar rgommers avatar riwoodward avatar roya0045 avatar scottza avatar squiba avatar steppi avatar teusia avatar warrenweckesser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scipy-cookbook's Issues

Small but important correction

In the section titled "Parallel Programming with numpy and scipy" in ParallelProgramming.ipynb, there's statement that while true in most cases, is not universally valid: "Using a multicore machine will provide at best a speedup by a factor of the number of cores available."

For things like searching a tree, depending on where the sought-after node is, it is possible to observe speedups of factors far greater than the number of cores available.

Value, Point methods not available in matplotlib.transforms

Hi,

I am trying to reproduce the multiline transforms code, but it seems that some methods (Value, Point) from the .transforms module haven't been included in it since a decade already. What can I use instead of these methods?

Best,
Izabel

Missing words in scipy-cookbook/ipython/ViewsVsCopies.ipynb

"For example, fancy indexing for could have been expressed by , but it is not possible to do the same for by means of a slice. So, this is why an object with a copy of the original data is returned instead."

"i.e. a new object with a copy (remember, fancy indexing does not return views) of some elements of is created and returned prior to call <is there missing information here? which call?>."

''Hint: think in terms of the sequence of {{{getitem()}}} and {{{setitem()}}} calls and what they do on each example.'' Not sure if something else is meant with the triple braces.

Sorry I would put up a PR if I knew what info to fill in, but i'm learning now!

Incorrect variable used in RadialBasisFunctions.ipynb

In the 1D example, when plotting the two curves, it plots the same curve twice.

On line 58:
plt.plot(xi, yi, 'g')
Should be:
plt.plot(xi, fi, 'g')

I would do a pull request but this would require updating the image as well, and I'm not able to produce the image without the title of the RBF curve overlapping with the xticks of the first curve.

License?

I cannot find license information in this repo. What is the license for this material?

Is there appetite for trying to revitalize the cookbook?

The scipy-cookbook has been a great resource in the past, but (as noted in the book itself) it is not really curated/had a high volume of attention paid to it. Is there any interest among maintainers to try to kick-start the cookbook and perhaps make it a more easy/visible place for users to contribute scipy tutorial content?

Specifically, I'd think of starting with updating the infrastructure - moving away from the custom build/cookbookrebuild.py workflow to a pure sphinx-based workflow using some of the excellent tools of the executablebooks project. I've had some experience working on similar projects for NumPy (numpy-tutorials) and NetworkX (nx-guides) and have found that the tools of the executablebooks project work very well and offer some great benefits like including (but not limited to):

  • The possibility for a fully sphinx-based workflow (doesn't require any custom building/rendering scripts - notebook execution and execution caching via sphinx extensions)
  • Support for jupyter notebooks out of the box (a major advantage here, since the content is already in notebooks)
  • Support for a markdown-based text format for Jupyter notebooks that makes diffing/reviewing notebooks much more straightforward

I realize that this is just the tip of the iceberg - the real challenge would be evaluating/updating the content of the cookbook - but I think modernizing the workflow might make subsequent steps/improvements easier.

I'd be happy to work on this, but I want to make sure that this is something that others/maintainers would be interested in!

slice in https://github.com/scipy/scipy-cookbook/blob/master/ipython/SignalSmooth.ipynb

Sorry not sending pull request as I am not sure I am correct. But I tried returning the slice suggested and had different output length. I am not sure of the math and how numpy.convolve works but my correction seems to pull the "middle" slice. E.g,. for window_len = 5 my suggested slice omits first two and last two elements.

NOTE: length(output) != length(input), to correct this: return y[(window_len/2-1):-(window_len/2)] instead of just y.

be

NOTE: length(output) != length(input), to correct this: return y[(window_len/2):-(window_len/2)] instead of just y.

Discussion

Thank you for this work. It’s pretty amazing.

Please open a discussion.

Miss-assigned errors in power-law fit?

The current error assignment in the power-law fit is:
indexErr = np.sqrt( covar[0][0] )
ampErr = np.sqrt( covar[1][1] ) * amp

But since index is the first component and amp is the zeroth component:
index = pfinal[1]
amp = 10.0**pfinal[0]
Shouldn't the error assignment be:
indexErr = np.sqrt( covar[1][1] )
ampErr = np.sqrt( covar[0][0] ) * amp
? Am I missing something obvious? Thanks!

Notebook formats

If I want to submit a PR with an updated notebook, the notebook format will be updated to the current one (v4 i think?). Is that okay? It will mean that the notebook formats are mixed in the repo, because i won't update all of them?

Output text without formatting

Hi!

I noticed that all text in output cells is displayed with all formatting ignored. For example the first "out" here.

Maybe you can fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.