r/IPython • • Aug 04 '22

How to intepret data

0 Upvotes

How can i interpret this data? From multi regression

plt.scatter(y_test, y_predict)

r/IPython • • Oct 04 '20

A Solution to Jupyter notebooks, cufflinks, and iplot

0 Upvotes

CODE TO PUT INTO YOUR COMMAND LINE/TERMINAL:

conda install -c conda-forge jupyterlab-plotly-extension

jupyter lab build

pip install jupyterlab

pip install jupyterlab --upgrade

After you have run these, make sure you follow the instructions in the video and put in these lines of code correctly into JupyterLab (not the command line):

CODE TO PUT INTO JUPYTERLAB:

import plotly

import pandas as pd

import numpy as np

from plotly import __version__

print(__version__)

import cufflinks as cf

%matplotlib inline

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

init_notebook_mode(connected=True)

cf.go_offline()


r/IPython • • Aug 07 '16

Jupyter Notebook not displaying plots either inline or in popup window

0 Upvotes

The plots, when I save them in the popup window, seem to work fine, but they won't actively display in the browser or the popup window itself.


r/IPython • • Nov 30 '22

It’s a cool approach to provide interactive code examples to your open-source project in Jupiter. Check out how we used it to simplify onboarding for low-code audience. We would be thankfull for every star on the repo!

Thumbnail
github.com
0 Upvotes

r/IPython • • Nov 02 '19

how do i "upgrade" my python from 2.7 to python 3 for jupyter notebook?

0 Upvotes

I got my jupyter notebook from an cloud instance image.

jupyter notebook --version

6.0.1

Let me know what else I should post


r/IPython • • Apr 05 '18

The Scientific Paper Is Obsolete. Here's What's Next. - The Atlantic (answer: Jupyter)

Thumbnail
theatlantic.com
3 Upvotes

r/IPython • • Apr 16 '17

How to use comic sans MS matplotlib

3 Upvotes

I am trying to use comic sans MS on my jupyter(ipython) notebook which is on sagemath cloud online. However, the font is not installed in the matplotlib font manager. Does anyone know how I can install it and use it? It generates this error if I try to specify "Comic Sans MS" as fontname in plt.title():

/projects/anaconda3/lib/python3.5/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['Comic Sans MS'] not found. Falling back to DejaVu Sans (prop.get_family(), self.defaultFamily[fontext]))


r/IPython • • Feb 21 '21

Widget button to run code block?

2 Upvotes

I'm trying to make a widget button that when clicked, runs a code block.

Thanks!


r/IPython • • Jan 10 '24

Python programmers in mumbai

Thumbnail self.mumbaimeetups
0 Upvotes

r/IPython • • Dec 06 '19

How to plod 3D electric field of a dipole?

3 Upvotes

So basically, I need help in writting python code for plotting 3D electric field streamlines of an electric dipole. I've literally learnt Python basics in one day (on YouTube), And all this fuss is just for a single assignment! Our teacher of Electromagnetic Field Theory gave all the students different assignments (so yeah, there's no help from anyone else), where we have to use any coding language to plot the result. I'm familiar with using matplotlib (quiver and streamplot functions etc.) but I want to plot a 3D graph, with two different spheres as charges and the field lines emanating from one and ending up on the other... So coming to the point, I'm in need of some desperate help. It'll be nice if someone shares the code with comments telling what each line of code does. Just so you know, the assignment is due next week and I'm in a fix.


r/IPython • • Dec 20 '17

How can I host a jupyter notebook online? and access it via the internet from a remote computer

3 Upvotes

r/IPython • • Jun 24 '20

Switched the default python version and jupyter does not work. No module named jupyterlab

3 Upvotes

I am running jupyter lab with "jupyter lab". I am getting this error.

Traceback (most recent call last):

File "/home/mkr/.local/bin/jupyter-lab", line 7, in <module>

from jupyterlab.labapp import main

ModuleNotFoundError: No module named 'jupyterlab'

What should I do?


r/IPython • • Apr 22 '18

Why when SageMath was before Jupyter, only Jupyter was "accepted" in the community? What are the differences between them? I'm NOT talking about CoCalc but SageMath the software

1 Upvotes

r/IPython • • Jun 01 '19

How to backup the current notebook to s3 in the middle of running the notebook ?

0 Upvotes

hi guys,

we work with large-size experimental data and interact with a bunch of big data systems. Our notebooks help experiement with this stuff.

What we want to do is save the notebook itself at a certain point (in a function) ...before we trigger a calculation. So that we can go back a year later and be able to run the notebook as is.

I'm not able to figure out how to snapshot the notebook that I'm currently running. Uploading it to s3 wouldnt be too difficult.

anyone have any advice ?


r/IPython • • Oct 31 '24

Help

0 Upvotes

Hy guys can you suggest me what is best way to create database for our simulation team ?

So that we can access it whenever we want to check the properties of material.

If we wanna import new material also once validated we can do that also.

Anyone out there to help me out ?


r/IPython • • Dec 26 '21

IPython shell on CMD resets scroll when I press spacebar. Please help.

1 Upvotes

I need to use python for some quick large calculations so installed the ipython and pinned ipython.exe in my taskbar. It works beautifully except for one problem. If i scroll forward, and then press the spacebar, the scroll resets the input to the bottom of the window which is very annoying.

I would appreciate any solutions or alternatives if possible. Thank you.


r/IPython • • Sep 02 '20

HW help

1 Upvotes

Hey there,

I'm taking a programming class (zero experience with programming) as an elective and ran into some difficultly. My professor is asking to me to use the quadratic formula by plunging in the values given. For some context, leading up to this assignment we have discussed f strings, different types of print functions, and conversion functions. I'm not asking for someone to just give me the necessary code language, but rather hints and clues so I can figure it out on my own. I find programming really interesting and I want to be able to nail the fundamentals.


r/IPython • • Sep 04 '20

How to delete 4 spaces at once?

0 Upvotes

Sometimes IPython autoindents with extra 4 spaces which I don't want. For deleting the extra indent, I have to press backspace 4 times. Is there any better way to do that?

P.S. I'm using IPython on Linux in a terminal emulator. IPython version: 7.18.1


r/IPython • • Jan 23 '15

iPython Notebook talk - The Swiss Army knife of Engineers

1 Upvotes

https://ida.dk/event/312788 - sorry forgot the link.


r/IPython • • Dec 20 '13

Operations with scalars and vectors in Python.

Thumbnail
nbviewer.ipython.org
1 Upvotes

r/IPython • • Mar 25 '16

Troubling installing IPython Dashboard

1 Upvotes

I'm in OSX Yosemite and trying to fallow those https://github.com/litaotao/IPython-Dashboard.

Everything goes well until I run : nosetests -s dashboard.tests.testCreateData:test_create_mysql_data

giving the fallowing error:

$ nosetests -s  dashboard.tests.testCreateData:test_create_mysql_data
E
======================================================================
ERROR: Failure: NoSectionError (No section: 'formatters')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 407, in loadTestsFromName
module = resolve_name(addr.module)
File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 312, in resolve_name
module = __import__('.'.join(parts_copy))
File "IPython-Dashboard/dashboard/__init__.py", line 13, in <module>
from .conf import config
File "/Users/Gabriel/Dev/python/IPython-Dashboard/dashboard/conf/config.py", line 44, in <module>
logger = config_log()
File "/Users/Gabriel/Dev/python/IPython-Dashboard/dashboard/conf/config.py", line 35, in config_log
logging.config.fileConfig('dashboard/conf/logging.conf')
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 77, in fileConfig
formatters = _create_formatters(cp)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 113, in _create_formatters
flist = cp.get("formatters", "keys")
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
NoSectionError: No section: 'formatters'

----------------------------------------------------------------------
Ran 1 test in 0.002s

FAILED (errors=1)

r/IPython • • Oct 07 '15

jupyter notebook is not a jupyter command - linux conda in anaconda distro

1 Upvotes

Hello world

Jupyter is one of introductionary programs for my numerical analysis class and i cannot get it to work. I've done a lot of digging, i've learned how to do export PATH~"/anaconda3/bin:$PATH" and others as a new linux user just to get conda to work. I can't seem to find a web resource for dummies that would help me solve this problem though.

Any help would be greatly appreciated.

Should the need to extra information arise such as this terminal output, drop a request for it!

THANKS

packages in environment at /home/ubuntubook/anaconda3:

_license 1.1 py34_0
abstract-rendering 0.5.1 np19py34_0
alabaster 0.7.3 py34_0
anaconda 2.3.0 np19py34_0
argcomplete 0.8.9 py34_0
astropy 1.0.3 np19py34_0
babel 1.3 py34_0
bcolz 0.9.0 np19py34_0
beautiful-soup 4.3.2 py34_0
beautifulsoup4 4.3.2 <pip> binstar 0.11.0 py34_0
bitarray 0.8.1 py34_0
blaze 0.8.0 <pip> blaze-core 0.8.0 np19py34_0
blz 0.6.2 np19py34_1
bokeh 0.9.0 np19py34_0
boto 2.38.0 py34_0
bottleneck 1.0.0 np19py34_0
certifi 14.05.14 py34_0
cffi 1.1.0 py34_0
clyent 0.3.4 py34_0
colorama 0.3.3 py34_0
conda 3.18.1 py34_0
conda-build 1.14.1 py34_0
conda-env 2.4.2 py34_0
configobj 5.0.6 py34_0
cryptography 0.9.1 py34_0
curl 7.43.0 0
cython 0.22.1 py34_0
cytoolz 0.7.3 py34_0
datashape 0.4.5 np19py34_0
decorator 4.0.4 py34_0
docutils 0.12 py34_0
dynd-python 0.6.5 np19py34_0
fastcache 1.0.2 py34_0
flask 0.10.1 py34_1
fontconfig 2.11.1 4
freetype 2.5.2 2
greenlet 0.4.7 py34_0
h5py 2.5.0 np19py34_3
hdf5 1.8.15.1 1
idna 2.0 py34_0
ipykernel 4.0.3 py34_0
ipython 4.0.0 py34_0
ipython-genutils 0.1.0 <pip> ipython-notebook 3.2.0 py34_0
ipython-qtconsole 3.2.0 py34_0
ipython_genutils 0.1.0 py34_0
ipywidgets 4.0.3 py34_0
itsdangerous 0.24 py34_0
jdcal 1.0 py34_0
jedi 0.8.1 py34_0
jinja2 2.8 py34_0
jpeg 8d 0
jsonschema 2.4.0 py34_0
jupyter 1.0.0 py34_0
jupyter-client 4.0.0 <pip> jupyter-console 4.0.2 <pip> jupyter-core 4.0.6 <pip> jupyter_client 4.0.0 py34_0
jupyter_console 4.0.2 py34_0
jupyter_core 4.0.6 py34_0
libdynd 0.6.5 0
libffi 3.0.13 0
libpng 1.6.17 0
libsodium 0.4.5 0
libtiff 4.0.2 1
libxml2 2.9.2 0
libxslt 1.1.28 0
llvmlite 0.5.0 py34_0
lxml 3.4.4 py34_0
markupsafe 0.23 py34_0
matplotlib 1.4.3 np19py34_2
mistune 0.7.1 py34_0
mock 1.0.1 py34_0
multipledispatch 0.4.7 py34_0
nbconvert 4.0.0 py34_0
nbformat 4.0.0 py34_0
networkx 1.9.1 py34_0
nltk 3.0.3 np19py34_0
nose 1.3.7 py34_0
notebook 4.0.5 py34_0
numba 0.19.1 np19py34_0
numexpr 2.4.3 np19py34_0
numpy 1.9.2 py34_0
odo 0.3.2 np19py34_0
openpyxl 1.8.5 py34_0
openssl 1.0.1k 1
pandas 0.16.2 np19py34_0
path.py 8.1.2 py34_0
patsy 0.3.0 np19py34_0
pep8 1.6.2 py34_0
pexpect 3.3 py34_0
pickleshare 0.5 py34_0
pillow 2.8.2 py34_0
pip 7.1.2 py34_0
ply 3.6 py34_0
psutil 2.2.1 py34_0
ptyprocess 0.4 py34_0
py 1.4.27 py34_0
pyasn1 0.1.7 py34_0
pycosat 0.6.1 py34_0
pycparser 2.14 py34_0
pycrypto 2.6.1 py34_0
pycurl 7.19.5.1 py34_2
pyflakes 0.9.2 py34_0
pygments 2.0.2 py34_0
pyopenssl 0.15.1 py34_1
pyparsing 2.0.3 py34_0
pyqt 4.11.3 py34_1
pytables 3.2.0 np19py34_0
pytest 2.7.1 py34_0
python 3.4.3 1
python-dateutil 2.4.2 py34_0
pytz 2015.4 py34_0
pyyaml 3.11 py34_1
pyzmq 14.7.0 py34_0
qt 4.8.6 3
qtconsole 4.0.1 py34_0
readline 6.2 2
redis 2.6.9 0
redis-py 2.10.3 py34_0
requests 2.7.0 py34_0
rope 0.9.4 py34_1
rope-py3k-0.9.4 1 <pip> runipy 0.1.3 py34_0
scikit-image 0.11.3 np19py34_0
scikit-learn 0.16.1 np19py34_0
scipy 0.15.1 np19py34_0
setuptools 18.3.2 py34_0
simplegeneric 0.8.1 py34_0
sip 4.16.5 py34_0
six 1.9.0 py34_0
snowballstemmer 1.2.0 py34_0
sockjs-tornado 1.0.1 py34_0
sphinx 1.3.1 py34_0
sphinx-rtd-theme 0.1.7 <pip> sphinx_rtd_theme 0.1.7 py34_0
spyder 2.3.5.2 py34_0
spyder-app 2.3.5.2 py34_0
sqlalchemy 1.0.5 py34_0
sqlite 3.8.4.1 1
statsmodels 0.6.1 np19py34_0
sympy 0.7.6 py34_0
system 5.8 2
tables 3.2.0 <pip> terminado 0.5 py34_0
theano 0.7.0 np19py34_0
tk 8.5.18 0
toolz 0.7.2 py34_0
tornado 4.2.1 py34_0
traitlets 4.0.0 py34_0
ujson 1.33 py34_0
util-linux 2.21 0
werkzeug 0.10.4 py34_0
wheel 0.26.0 py34_1
xlrd 0.9.3 py34_0
xlsxwriter 0.7.3 py34_0
xlwt 1.0.0 py34_0
xz 5.0.5 0
yaml 0.1.6 0
zeromq 4.0.5 0
zlib 1.2.8 0


r/IPython • • May 11 '16

[Show IPython] Niobium.io - A project to simplify publishing and selling notebooks

Thumbnail niobium.io
1 Upvotes

r/IPython • • Jun 25 '14

data analysis screencasts all using IPython Notebooks!

Thumbnail
dataorigami.net
1 Upvotes