Public
Sign Up
Learn more
'; let element = document.querySelector ( 'nav[aria-label="Breadcrumb"]' ); if ( element ) { element.parentElement.insertAdjacentHTML ( 'beforebegin', element_html ); } } } );
Jason Registered Posts: 29 ✭✭✭✭✭
November 2023 in
So as background, I'm not really a Linux server administrator, and our Linux administrators aren't really dataiku administrators (also, they're not really python people per-se). We have an on-prem install.
With that background, we've got python 3.6 and 3.7 on our instances, and we'd like to add each major point version up to 3.10 or so (our Dataiku version number doesn't support 3.11).
My question is: How does Dataiku know which versions of python are available for environments to use? I see version numbers in the pulldown despite the fact that they are not installed on the server, and poking around, I can see a few versions installed, but I don't know what the recommended method is for installing python in my environment (Red Hat). Can I just navigate to the dataiku_data/pyenv/bin directory and install with PIP? If I do that do I need to do something to tell Dataiku where to find my new version? I'm hoping it's just automagic, but I'm hesitant to give such vague instructions to my server admin. I've been googling it for a few hours now, and I'm not finding any documentation that is really specific (leading me to believe in the magic part).
Help?
Operating system used: Red Hat
Tagged:
- Ignition
0 · Share on FacebookShare on Twitter
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,914 Neuron
See Alsopip-upgrade-outdatedNovember 2023 Answer ✓
Hi, even though you see the options listed on the dropdown menu when you try to create a new Python code environment each option will not work unless the corresponding Python version is actually installed in the system.
Can I just navigate to the dataiku_data/pyenv/bin directory and install with PIP?
>> No! This is the built-in Python environment and you should stay away from it! I recently wrote a Product Idea which covers this in detail so have a good read.
To install more Python versions in RHEL you simply run "yum install package_name" and it will be installed. Then reboot your system and voilà, you can create code environments in the new Python version. The RHEL package names are "python38", "python39" and "python3.11" (*). Sometimes the devel packages are needed so I install those too (ie python38-devel). How does Dataiku know you did that? Because the Python binaries get added to /usr/bin/ which is in the path so Dataiku can see them.
(*) RHEL has decided to skip Python 3.10 so you can only install 3.8, 3.9 and 3.11 (if you are in Dataiku v12) from RHEL repos. If you want 3.10 you will need to go to Python.org and download the source and do a manual install or get another package from another repository but this won't be curated by RHEL so there is some risk attached to that.
2 · Share on FacebookShare on Twitter
Answers
Jason Registered Posts: 29 ✭✭✭✭✭
November 2023
Thank you! This is exactly what I was looking for!
0 · Share on FacebookShare on Twitter
'; let dataiku_editor_buttons_css = '
'; document.querySelector ( '.richEditor ul[class*="menuItemsList"] > *:last-child' ).insertAdjacentHTML ( 'afterend', dataiku_editor_buttons ); document.querySelector ( '.Section-PostDiscussion.editor-active.NoPanel .Frame-content > .Container .FormWrapper .Form-Tags' ).insertAdjacentHTML ( 'afterend', dataiku_editor_buttons_css ); document.getElementById ( 'dataiku-blockquote-button' ).addEventListener ( 'click', function ( e ) { e.preventDefault (); setTimeout ( function () { if ( document.querySelector ( 'button[class*="buttonIconMenuBar"]' ) ) { document.querySelector ( 'button[class*="buttonIconMenuBar"]' ).click (); setTimeout ( function () { if ( document.querySelector ( 'span[title="Toggle Special Formats Menu"]' ) ) { document.querySelector ( 'span[title="Toggle Special Formats Menu"]' ).click (); setTimeout ( function () { if ( document.querySelector ( 'div[title="Code Block"]' ) ) { document.querySelector ( 'div[title="Code Block"]' ).click (); } }, 0 ); } }, 0 ); } if ( document.querySelector ( 'button[class*="buttonIconMenuBar"] ~ div' ) ) { document.querySelector ( 'button[class*="buttonIconMenuBar"] ~ div' ).style.visibility = 'hidden'; setTimeout ( function () { if ( document.querySelector ( 'button[class*="buttonIconMenuBar"] ~ div' ) ) { document.querySelector ( 'button[class*="buttonIconMenuBar"] ~ div' ).style.visibility = 'visible'; } }, 300 ); } }, 0 ); } ); } }, 100 ); if ( ( window.location.href + ' ' ).split ( 'post/question' ).length > 1 ) { // dataiku setup info let dataiku_custom_tags_html = '
'; document.querySelector ( '.Section-PostDiscussion.editor-active.NoPanel .Frame-content > .Container .FormWrapper .Form-Tags' ).insertAdjacentHTML ( 'afterend', dataiku_custom_tags_html ); // intercept form submission document.getElementById ( 'operating_system' ).addEventListener ( 'keypress', function ( event ) { if ( event.key === 'Enter' ) event.preventDefault (); } ); document.getElementById ( 'Form_Name' ).addEventListener ( 'keypress', function ( event ) { if ( event.key === 'Enter' ) event.preventDefault (); } ); let dataiku_form_element = document.getElementById ( 'Form_AskQuestion' ); dataiku_form_element.addEventListener ( 'click', function ( event ) { let e_operating_system = document.getElementById ( 'operating_system' ); let e_Form_Tags = document.getElementById ( 'Form_Tags' ).value.trim ().split ( ',' ); for ( let i = 0; i < e_Form_Tags_added.length; i++ ) { e_Form_Tags = e_Form_Tags.filter ( function ( element ) { return element !== e_Form_Tags_added [ i ]; } ); } e_Form_Tags_added = []; if ( e_operating_system.value.trim ().length && document.getElementById ( 'Form_Body' ) ) { let actual_tag = e_operating_system.value.trim ().replace ( /_/g, ' ' ).replace ( /"/g, '' ).replace ( /,/g, '' ); let current_text = document.getElementById ( 'Form_Body' ).value; if ( current_text.length ) { current_text = current_text.substr ( 0, current_text.length - 1 ); current_text += ',{"type":"p","children":[{"text":"Operating system used: "},{"text":"' + actual_tag + '","bold":true}]}]'; } else { current_text = '[{"type":"p","children":[{"text":"Operating system used: "},{"text":"' + actual_tag + '","bold":true}]}]'; } document.getElementById ( 'Form_Body' ).value = current_text; } let e_dataiku_edition = document.getElementById ( 'dataiku_edition' ); if ( e_dataiku_edition.value.trim ().length ) { e_Form_Tags_added.push ( e_dataiku_edition.value.trim () ); e_Form_Tags.push ( e_dataiku_edition.value.trim () ); } let e_dataiku_version = document.getElementById ( 'dataiku_version' ); if ( e_dataiku_version.value.trim ().length ) { e_Form_Tags_added.push ( e_dataiku_version.value.trim () ); e_Form_Tags.push ( e_dataiku_version.value.trim () ); } let e_browser_used = document.getElementById ( 'browser_used' ); if ( e_browser_used.value.trim ().length ) { e_Form_Tags_added.push ( e_browser_used.value.trim () ); e_Form_Tags.push ( e_browser_used.value.trim () ); } document.getElementById ( 'Form_Tags' ).value = e_Form_Tags.join ( ',' ); } ); } } else { setTimeout ( postingpage_boardautoselect__configuration, 100 ); }}window.addEventListener ( 'load', function () { setTimeout ( postingpage_boardautoselect__configuration, 100 );} );
'; } } }
Categories
- All Categories
- 8.3K Discussions
- 174 What's New
- 280 Academy Discussions
- 59 Knowledge Base