Comments (3)
modsim.py
is not a package you can install. It is just a file (a Python module) you can download. The notebook should contain code that downloads the file to the current directory, and then you should be able to import it.
If that doesn't work, I strongly encourage you run the notebooks on Colab. The book is really about Modeling and Simulation -- if you spend your time and effort debugging your software development environment, you will never get to the fun part!
In general, if there's a problem running the notebook on Colab, I will fix it. But I can't debug problems with local installations of Python and Jupyter -- sorry, but it's just too much!
from modsimpy.
It's in modsim.py
https://github.com/AllenDowney/ModSimPy/blob/master/modsim.py#L700
So you should get it when you from modsim import *
from modsimpy.
Thanks Allen. Unfortunately this does not work for me. If I have a directory with the following requirements.txt
:
pandas
sympy
beautifulsoup4
lxml
html5lib
pint
modsimpy
matplotlib
numpy
scipy
seaborn
tornado
IPython
and the following test.py
file:
from modsim import *
print(show)
and then I run the following:
python -m venv .
source ./bin/activate
pip install -r requirements.txt
python test.py
then I get the following error:
Traceback (most recent call last):
File "test.py", line 2, in <module>
print(show)
^^^^
NameError: name 'show' is not defined
from modsimpy.
Related Issues (20)
- modsim install instructions incorrect in version 3 book HOT 11
- Errors on importing library HOT 4
- Decode Error, con't decode with "gbk"
- Cannot run dir() on ModSimSeries objects HOT 1
- Can't pip install modsimpy - Error Message HOT 3
- Convert notebooks to LaTeX
- Open in Colab links HOT 1
- Installing pint with Python 3.8 HOT 2
- chapter 2 'plot' is not defined HOT 3
- Pandas dataframe doesn't display on website HOT 2
- No figure of spiderman on website HOT 1
- Math rendering error on website HOT 1
- Math dollar signs rendered on yoyo example on website HOT 1
- Ch 01 velocity magnitude HOT 1
- Deprecated use of `pd.Series.iteritems` HOT 1
- Issue with Pint - Chapter 1 HOT 3
- Is `modsim/test_modsim.py` still a valid unit test HOT 1
- ModSimSeries in the Salmon Population case study HOT 1
- Where are the answers? :( HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modsimpy.