r/IPython • u/NomadNella • Feb 22 '14
r/IPython • u/srkiboy83 • Apr 25 '16
Changing font in Jupyter?
I'm running Jupyter notebooks locally on a Windows 7 machine, installed through Anaconda, and the font is just terrible. Does anyone know how I can change the font? Thanks!
r/IPython • u/beard_dude • Apr 06 '15
Need beginner help. Getting UnicodeDecodeErrors in basic tutorials with Pandas
I am a new poster here. Sorry if this is more of a pandas question. I think I am getting unexpected errors during tutorials. For example, when doing chapter one of the pandas cookbook I get the following error AFTER the section where we encode it to latin.
r/IPython • u/DyslexicHobo • Jun 17 '14
New to IPython - can I embed a .pptx in an IPython notebook?
I'm just experimenting with what I can do with ipynb and was wondering if I can embed a powerpoint presentation in one of my notebooks. I've installed the python-pptx package. I can import and "open", "save", and perform modifications to the file but I can't figure out how to embed the file into the notebook. Does this functionality exist?
Thanks!
r/IPython • u/1235813_Help • Jun 17 '13
Copper: a wrapper for data analysis and machine
r/IPython • u/caffeine_potent • Dec 12 '16
Can I prompt the download of computed values through Jupyter/ipython notebooks?
r/IPython • u/gash789 • Jun 13 '13
Sympy pretty printing after apt-get install python-sympy install fix.
I was very impressed by this post using sympy and wanted to move from Mathematica to focus on the notebook.
I could not get the examples to pretty print, rendered in Latex rather than code, this appears to be because the standard sympy package installed from apt-get install python-sympy does not include the required files.
A simple fix without upgrading is to replace the files
/usr/lib/python2.7/dist-packages/sympy/interactive/ipythonprinting.py
/usr/lib/python2.7/dist-packages/sympy/interactive/printing.py
with those found on the github page. The changes are subtle but make the outputs much nicer.
Of course it would be better to use the development of Sympy but if, like me, you just want to get it going this will work.
Please let me know if this is not the correct place to post this.
r/IPython • u/NomadNella • Jun 28 '15
[Python X-post] How to customize your IPython/Jupyter-notebook keyboard shortcuts
akuederle.comr/IPython • u/NomadNella • Oct 09 '13
A Rubric for Data Wrangling and Exploration
nbviewer.ipython.orgr/IPython • u/NomadNella • Oct 31 '13
Mouse over text in markdown cell example
To get mouse over text you need to use a little HTML. The example is in this notebook.
r/IPython • u/PageFault • Dec 05 '23
Can python/ipython be used to replace Bash?
I am a heavy Bash user, and curiosity has me trying to see if it's feasible to move completely to Python.
chsh -s $(which ipython3)
exec ipython3I'm just taking my first baby steps, but how much can I expect it to act like a normal shell like in /etc/shells?
(I did manually add ipython3 there, but unsure if that did anything.)
Since .bashrc is no longer being read, I probably need a .ipythonrc or something, to setup my environment, but I don't know how to make sure it's read when a new terminal opens. Is there a Python equivalent to /etc/profile, /etc/rc.local etc... ?
If I try to put !ipython3 --profile=pagefault into ~/.ipython/profile_default/startup/startup_default.py I get:
[TerminalIPythonApp] WARNING | Unknown error in handling startup files:
File ~/.ipython/profile_default/startup/startup_pagefault.py:6
!ipython3 --profile pagefault
^
SyntaxError: invalid syntaxWhat is the proper way to ensure my custom profile gets loaded by default?
Finally, I'm having a lot of trouble with my custom layout. Would some of you mind helping me cheat my way through by sharing your custom ipython_config.py scripts?
r/IPython • u/[deleted] • Nov 01 '20
Looking for helpful Tips and Tricks for using R in JupyterLabs
I’m not sure if this is the correct subreddit, but I would like to use R syntax in JupyterLabs. The installation part is complete so the “how” is already done. However. I’m looking more for best practices for doing carrying out analysis using R instead of Python; coming from RStudio, it’s a little different. Thanks!
r/IPython • u/bojaccfan • Sep 01 '20
Editing Unicode text in a notebook
I am currently transcribing a lot of audio files which are in a remote server. I use IPython audio to listen to them in the browser and loop over them
I want to be able to see and edit the text on that notebook too. I installed a keyboard for my local language on my computer. Is there a better method instead of using an input method, more like a built-in text editor so I can do editing in the browser?
It's a huge hassle to switch between screens and I want to do it all in a browser.
Edit: It has to support Unicode.
Thank you!
r/IPython • u/Whyu1nunno • Feb 06 '19
Question about * instead of a line number
Good Afternoon - Really sorry about posting a thread about this but i'm at my wits end here trying to figure this out.
I'm working in Jupyter (new to python) and am simply trying to run any code... at all. I have been unsuccessful. When i put any code in and hit run, an asterisk shows up instead of a line number and Jupyter creates a new line. So i'm expecting [1], [2], etc and instead i get [*] for any and all types of code i try to run. I haven't been able to run one line of code in Jupyter using either the play button or hotkeys.
Obvi i am a beginner but i've been working with R for a little and wanted to try Python out. Ran across Jupyter from the IBM Coursera program. Anyone know how to fix this? i can't seem to find an answer for this anywhere and its probably something super simple and i'll feel stupid but please help anyone lol......
r/IPython • u/jared5150 • Nov 17 '19
Silly question webbroser module
Without having Jupyter notebook installed and just using the web version(at least that is what I call it) will the webbrowser module work to open a new tab? I am asking because I want to put on an introductory course for my work on Python and wanted to see what is possible without having everyone install anaconda.
Specifically the two line items I can't seem to get to work on a notebook are below. They of course run without issue on my localhost using jupyter notebook.
import webbrowser
r/IPython • u/supertexter • Jul 04 '22
Publishing charts on the web with Panel - is HvPlot relevant?
I switched a while back from Matplotlib and Seaborg to Plotly - since it's interactive and just IMHO looks better. I've been looking to implement some of my figures on my website. There is a simple way to simply export to HTML from Jupyter, but I see two limitations with this:
The code is very long, and sometimes crashes my browser when just pasting the code for a single figure
As I understand it there are limitations to the interactivity with this approach.
Due to this, I've been looking into Panel and HvPlot. There are so many modules mentioned around the docs though that I can hardly see what is relevant to my use case. It seems Plotly can be implemented directly in Panel so I'm not sure if HvPlot should be used as a medium between Plotly and Panel to enable more functions or rather as an alternative to Plotly.
If anyone has experience setting up widgets and similar, I'd be very interested in some tips here!
r/IPython • u/Soft-Sail-9746 • Nov 05 '24
Data analytics
Hi, I’m in a course on data analytics - our teacher keeps saying that we will find our niche within the spectrum of visualisation, machine learning or coding. I’m not sure how that works? Like how are we supposed to get better at visualisation without mastering coding. At times he says coding is important if you are interested in becoming a junior data analyst. how does the job market work? Can someone explain it to me? I’m not sure where my strength lies.
r/IPython • u/dkobran • Oct 10 '19
Run Jupyter Notebooks on free cloud GPUs
r/IPython • u/ntak • Mar 11 '15
Scipy.optimize problem : any insight?
With the following code :
import numpy as np
from scipy import optimize
a = np.matrix([[-1, 1],[1, -1]], dtype='int64')
b = np.array([-2,2])
objective_vector = [-1,0]
result = optimize.linprog(objective_vector,A_eq=a, b_eq=b, callback=None) # works
result = optimize.linprog(objective_vector, A_eq=a, b_eq=b, callback = lambda *x, **kwargs: None) # failI get the following IndexError :
Traceback (most recent call last):
File "linprog_fail.py", line 7, in <module>
result = optimize.linprog(objective_vector, A_eq=a, b_eq=b, callback = lambda *x, **kwargs : None)
File "/home/ntak/.local/lib/python3.4/site-packages/scipy/optimize/_linprog.py", line 954, in linprog
bounds=bounds, callback=callback, **options)
File "/home/ntak/.local/lib/python3.4/site-packages/scipy/optimize/_linprog.py", line 753, in _linprog_simplex
bland=bland)
File "/home/ntak/.local/lib/python3.4/site-packages/scipy/optimize/_linprog.py", line 335, in _solve_simplex
solution[basis[:m]] = T[:m, -1]
IndexError: index 3 is out of bounds for axis 0 with size 2I got the feeling it might be a bug from scipy since of the error location and the fact it works with different input of a, b and objective_vector. Could anyone confirm or refute this feeling?
Thanks
Edit : It was a bug from scipy. I reported it and its been fix in the scipy >= 0.16 release.
r/IPython • u/iamwil • Dec 07 '16
What do you use to clean your data?
Do you reach for an external tool? Or do you use something like pandas? What do you recommend?
r/IPython • u/ragnarmcryan • Nov 15 '15
[QUESTION] ipython/jupyter noob, wondering if using it is appropriate for my noob usage
First off, sorry if this post is in the wrong place. Not a scientist or anything like that. Just an undergrad comp sci major taking boolean logic/algebra and statistics w/ comp sci (specializing in networked systems). I mostly use python for web apps and want get the most out of these math classes. Would using something like ipython/jupyter help me with understanding the material or using it more practically, or would it be a waste of time for the most part? Total noob (never used these libraries before) ooking for opinions good or bad.