Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9312965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:45:46+00:00 2026-06-19T01:45:46+00:00

Typically, one uses import numpy as np to import the module numpy. Are there

  • 0

Typically, one uses import numpy as np to import the module numpy.

Are there general conventions for naming?

What about other modules, in particular from scientific computing like scipy, sympy and pylab or submodules like scipy.sparse.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T01:45:48+00:00Added an answer on June 19, 2026 at 1:45 am

    SciPy recommends import scipy as sp in its documentation, though personally I find that rather useless since it only gives you access to re-exported NumPy functionality, not anything that SciPy adds to that. I find myself doing import scipy.sparse as sp much more often, but then I use that module heavily. Also

    import matplotlib as mpl
    import matplotlib.pyplot as plt
    import networkx as nx
    

    You might encounter more of these as you start using more libraries. There’s no registry or anything for these shorthands and you’re free to invent new ones as you see fit. There’s also no general convention except that import lln as library_with_a_long_name obviously won’t occur very often.

    Aside from these shorthands, there’s a habit among Python 2.x programmers to do things like

    # Try to import the C implementation of StringIO; if that doesn't work
    # (e.g. in IronPython or Jython), import the pure Python version.
    # Make sure the imported module is called StringIO locally.
    try:
        import cStringIO as StringIO
    except ImportError:
        import StringIO
    

    Python 3.x is putting an end to this, though, because it no longer offers partial C implementations of StringIO, pickle, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would one typically implement a service layer in an MVC architecture? Is it
How would one typically create a dynamic factory method in PHP? By dynamic factory
In GWT one typically loads i18n strings using a interface like this: public interface
With my database upgrade scripts, I typically just have one long script that makes
I have a series of images. Each one is typically (but not always) similar
Using javascript regular expressions, how do you match one character while ignoring any other
Some folks, typically those that come from a C background, code their tests for
Fairly new to iPhone dev. My app uses Core Data, and at one point
As I understand, Ruby 1.9 uses OS threads but only one thread will still
I have a collection of about 3500 product Serial Numbers that my software uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.